We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cbbd7f commit c5eec2eCopy full SHA for c5eec2e
compiler/natives/src/time/time.go
@@ -42,9 +42,10 @@ func runtimeNano() int64 {
42
return js.Global.Get("Date").New().Call("getTime").Int64() * int64(Millisecond)
43
}
44
45
-func now() (sec int64, nsec int32) {
+func now() (sec int64, nsec int32, mono int64) {
46
+ // TODO: Use mono if needed/possible.
47
n := runtimeNano()
- return n / int64(Second), int32(n % int64(Second))
48
+ return n / int64(Second), int32(n % int64(Second)), 0
49
50
51
func Sleep(d Duration) {
0 commit comments