MCPcopy Index your code
hub / github.com/yuin/gopher-lua / osClock

Function osClock

oslib.go:70–73  ·  view source on GitHub ↗
(L *LState)

Source from the content-addressed store, hash-verified

68}
69
70func osClock(L *LState) int {
71 L.Push(LNumber(float64(time.Now().Sub(startedAt)) / float64(time.Second)))
72 return 1
73}
74
75func osDiffTime(L *LState) int {
76 L.Push(LNumber(L.CheckInt64(1) - L.CheckInt64(2)))

Callers

nothing calls this directly

Calls 2

LNumberTypeAlias · 0.85
PushMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…