static int ts_lua_get_now_time(lua_State * L) { time_t now; now = TShrtime() / 1000000000; lua_pushnumber(L, now); return 1; }
static int ts_lua_get_now_time(lua_State *L) { lua_Number now; // Return fractional seconds. now = ((lua_Number)TShrtime()) / 1000000000.0; lua_pushnumber(L, now); return 1; }