Nasal library: Difference between revisions

m
added new method for uSec
m (→‎maketimestamp(): - fix commit ID)
m (added new method for uSec)
Line 1,841: Line 1,841:
|version = 2019.2
|version = 2019.2
|commit = {{flightgear commit|7db06300|t=commit}}
|commit = {{flightgear commit|7db06300|t=commit}}
|text = Returns a time stamp object to allow high resolution timing of Nasal operations containing the following methods and members:
|text = Returns a time stamp object to allow high resolution timing of Nasal operations. When created the timer will automatically be stamped. The object has the following methods:
* '''stamp()''': Resets the timing operation. Call this first.
* '''stamp()''': Resets the timing operation. Call this first.
* '''elapsedMSec()''': returns number of milliseconds elapsed since stamp() called. Resolution may vary depending on platform but is usually at least millisecond accuracy.
* '''elapsedMSec()''': returns number of milliseconds elapsed since stamp() called. Resolution may vary depending on platform but is usually at least millisecond accuracy.
* '''elapsedUSec()''': returns number of microseconds elapsed since stamp() called. Resolution may vary depending on platform but is usually at least millisecond accuracy.
|
|
|example1text = In the example below the number of milliseconds elapsed will be printed.
|example1text = In the example below the number of milliseconds elapsed will be printed.
308

edits