GameTimer
Wrapper for Roku's roTimeSpan that allows time adjustment
Constructor
new GameTimer(): GameTimerInstance Methods
mark(): void
Returns
void
freeze(): void
Stops counting real time, so only addTime()/removeTime() move the reading (which drops to just their offset). For tests that sample exact times, where a slow runner's real time would otherwise add drift.
Returns
void
isFrozen(): boolean
Returns
boolean— true once freeze() has been called
totalMilliseconds(): integer
Returns
integer
totalSeconds(): integer
Returns
integer
getSecondsToISO8601Date(date: string): integer
Parameters
date(string)
Returns
integer
addTime(milliseconds: integer): void
Parameters
milliseconds(integer)
Returns
void
removeTime(milliseconds: integer): void
Parameters
milliseconds(integer)
Returns
void