Packageefnx.time
Classpublic class TimeKeeper

Keeps time.



Public Properties
 PropertyDefined by
  initialized : Boolean
[read-only] Returns whether or not TimeKeeper has been initialized.
TimeKeeper
  isRunning : Boolean
[static][read-only] Tells whether or not TimeKeeper is running.
TimeKeeper
  stage : DisplayObjectContainer
Returns stage object.
TimeKeeper
  step : int
[read-only] Returns the number of milliseconds since the last frame.
TimeKeeper
Public Methods
 MethodDefined by
  
TimeKeeper
  
checkStage():Boolean
Checks to see if the stage has been referenced.
TimeKeeper
  
start():void
Starts the timer.
TimeKeeper
  
stepsOf(val:int):Number
Returns the number of intervals(val) in milliseconds passed since last frame.
TimeKeeper
  
stop():void
Stops the timer.
TimeKeeper
Property detail
initializedproperty
initialized:Boolean  [read-only]

Returns whether or not TimeKeeper has been initialized.

Implementation
    public function get initialized():Boolean
isRunningproperty 
isRunning:Boolean  [read-only]

Tells whether or not TimeKeeper is running.

Implementation
    public static function get isRunning():Boolean
stageproperty 
stage:DisplayObjectContainer  [read-write]

Returns stage object.

Implementation
    public function get stage():DisplayObjectContainer
    public function set stage(value:DisplayObjectContainer):void
stepproperty 
step:int  [read-only]

Returns the number of milliseconds since the last frame.

Implementation
    public function get step():int
Constructor detail
TimeKeeper()constructor
public function TimeKeeper()

Method detail
checkStage()method
public function checkStage():Boolean

Checks to see if the stage has been referenced.

Returns
Boolean

Throws
— Throws an error event in the case that a stage reference has not been added.
start()method 
public function start():void

Starts the timer.

stepsOf()method 
public function stepsOf(val:int):Number

Returns the number of intervals(val) in milliseconds passed since last frame.

Parameters
val:int — The amount of time you would like to query.

Returns
Number — A Number representing multiples of val that have passed since last frame.
stop()method 
public function stop():void

Stops the timer.