Package | weavejs.util |
Class | public class DebugTimer |
Inheritance | DebugTimer ![]() |
Method | Defined By | ||
---|---|---|---|
begin():void [static]
This will record the current time as a new start time for comparison when lap() or end() is called. | DebugTimer | ||
cancel():void [static]
Cancels the last call to begin(). | DebugTimer | ||
end(debugString:String, ... debugStrings):int [static]
This will reset the timer so that higher-level functions can resume their use of DebugTimer. | DebugTimer | ||
lap(debugString:String, ... debugStrings):int [static]
This will report the time since the last call to begin() or lap(). | DebugTimer |
begin | () | method |
public static function begin():void
This will record the current time as a new start time for comparison when lap() or end() is called. Pairs of calls to begin() and end() may be nested.
cancel | () | method |
public static function cancel():void
Cancels the last call to begin().
end | () | method |
public static function end(debugString:String, ... debugStrings):int
This will reset the timer so that higher-level functions can resume their use of DebugTimer. Pairs of calls to begin() and end() may be nested.
Parameters
debugString:String — A string to print using trace().
| |
... debugStrings — Additional strings to print using trace(), which will be separated by spaces.
|
int — The elapsed time.
|
lap | () | method |
public static function lap(debugString:String, ... debugStrings):int
This will report the time since the last call to begin() or lap().
Parameters
debugString:String — A string to print using trace().
| |
... debugStrings — Additional strings to print using trace(), which will be separated by spaces.
|
int — The elapsed time.
|