If called in rAF callback or microtasks generated by rAF callback, the start time (the first element of timer records) will be the current frame time, otherwise the next frame time.
Optional
Do not repeat
timer.start();timer.start(); // errorawait timer.start();timer.start(); // righttimer.start();timer.stop();timer.start(); // right Copy
timer.start();timer.start(); // errorawait timer.start();timer.start(); // righttimer.start();timer.stop();timer.start(); // right
If called in rAF callback or microtasks generated by rAF callback, the start time (the first element of timer records) will be the current frame time, otherwise the next frame time.