MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / os_difftime

Function os_difftime

other_src/lua/src/loslib.cpp:195–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193
194
195static int os_difftime (lua_State *L) {
196 lua_pushnumber(L, difftime((time_t)(luaL_checknumber(L, 1)),
197 (time_t)(luaL_optnumber(L, 2, 0))));
198 return 1;
199}
200
201/* }====================================================== */
202

Callers

nothing calls this directly

Calls 3

luaL_checknumberFunction · 0.85
luaL_optnumberFunction · 0.85
lua_pushnumberFunction · 0.70

Tested by

no test coverage detected