Class: MockProfileTimer
Mock of the X-Ray engine high-precision profile_timer.
Implements
profile_timer
Constructors
Constructor
ts
new MockProfileTimer(): MockProfileTimer;Returns
MockProfileTimer
Methods
create()
ts
static create(): MockProfileTimer;Returns
MockProfileTimer
mock()
ts
static mock(): profile_timer;Returns
profile_timer
Properties
__name
ts
readonly __name: string = "profile_timer";LuaBind instance constructor name.
Implementation of
ts
profile_timer.__nameduration
ts
duration: number | null = null;start
ts
start: Mock<() => number>;Start or restart measuring elapsed time.
Remarks
Calling start() while the timer is already running increases the recursion mark instead of restarting the underlying clock.
Implementation of
ts
profile_timer.startstop
ts
stop: Mock<() => void>;Stop measuring elapsed time.
Remarks
Calling stop() on a timer that was not started is ignored.
Implementation of
ts
profile_timer.stoptime
ts
time: Mock<() => number>;Returns
Elapsed time in microseconds.
Implementation of
ts
profile_timer.timetimestamp
ts
timestamp: number | null = null;