The current arguments expects a time.Duration which is an int64 that should measure time deltas in nanoseconds. However requestAnimationFrame is said to give millisecond time points relative to some variable time origin. Perhaps it is better to change the type into int (or whatever is best compatible with JS).
I was a bit too soon to conclude, the returned values are actually nanoseconds. Since they represent the duration since the JavaScript time origin, this type is ok.
The current arguments expects a
time.Duration
which is anint64
that should measure time deltas in nanoseconds. HoweverrequestAnimationFrame
is said to give millisecond time points relative to some variable time origin. Perhaps it is better to change the type intoint
(or whatever is best compatible with JS).