timerGet
Return the number of micros left on the timer for id if there is one. If
timerDone, this value will be <= 0 and represents how many micros this
frame is past the timer expiration.
Only valid between Window.beginand Window.end.
Parameters
- id:Id
- Id
Source
Implementation
pub fn timerGet(id: Id) ?i32 {
if (animationGet(id, "_timer")) |a| {
return a.end_time;
} else {
return null;
}
}