simon.vergauwen
05/27/2019, 12:31 PMspand
05/27/2019, 12:50 PMDate.getTime()
and https://developer.mozilla.org/en-US/docs/Web/API/Performancespand
05/27/2019, 12:50 PMsimon.vergauwen
05/27/2019, 12:54 PMgetTimeNanos
or CLOCK_MONOTONIC
in Js.spand
05/27/2019, 1:08 PMThis method provides nanosecond precision, but not necessarily
* nanosecond resolution (that is, how frequently the value changes)
* - no guarantees are made except that the resolution is at least as
* good as that of {@link #currentTimeMillis()}.
simon.vergauwen
05/27/2019, 1:09 PMsimon.vergauwen
05/27/2019, 1:11 PMClock
abstraction for Arrow. Some other MPP languages (or frameworks in languages) I checked offer both since nanos
is better suited for tracking timed events compared to millis
.simon.vergauwen
05/27/2019, 1:12 PMribesg
05/27/2019, 1:20 PMsimon.vergauwen
05/27/2019, 1:21 PMribesg
05/27/2019, 1:33 PMfcosta
05/27/2019, 2:44 PMribesg
05/27/2019, 2:50 PMsimon.vergauwen
05/27/2019, 2:54 PMbashor
05/27/2019, 8:02 PMjs("Date").now()
or window.performance.now()
bashor
05/27/2019, 8:02 PMwindow
you need import kotlin.browser.window
simon.vergauwen
05/27/2019, 8:34 PM