MCPcopy Create free account
hub / github.com/defold/defold / timeout_lua_gettime

Function timeout_lua_gettime

engine/script/src/luasocket/timeout.c:185–189  ·  view source on GitHub ↗

=========================================================================*\ * Test support functions \*=========================================================================*/ -------------------------------------------------------------------------*\ * Returns the time the system has been up, in secconds. \*-------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

183* Returns the time the system has been up, in secconds.
184\*-------------------------------------------------------------------------*/
185static int timeout_lua_gettime(lua_State *L)
186{
187 lua_pushnumber(L, timeout_gettime());
188 return 1;
189}
190
191/*-------------------------------------------------------------------------*\
192* Sleep for n seconds.

Callers

nothing calls this directly

Calls 2

lua_pushnumberFunction · 0.85
timeout_gettimeFunction · 0.85

Tested by

no test coverage detected