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

Function os_clock

other_src/lua/src/loslib.cpp:74–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73
74static int os_clock (lua_State *L) {
75 lua_pushnumber(L, ((lua_Number)clock())/(lua_Number)CLOCKS_PER_SEC);
76 return 1;
77}
78
79
80/*

Callers

nothing calls this directly

Calls 1

lua_pushnumberFunction · 0.70

Tested by

no test coverage detected