MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / os_difftime

Function os_difftime

lua/loslib.c:212–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210
211
212static int os_difftime (lua_State *L) {
213 lua_pushnumber(L, difftime((time_t)(luaL_checknumber(L, 1)),
214 (time_t)(luaL_optnumber(L, 2, 0))));
215 return 1;
216}
217
218/* }====================================================== */
219

Callers

nothing calls this directly

Calls 4

lua_pushnumberFunction · 0.85
difftimeFunction · 0.85
luaL_checknumberFunction · 0.85
luaL_optnumberFunction · 0.85

Tested by

no test coverage detected