MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / cliLuaMTime

Function cliLuaMTime

Source/Basic/Application.cpp:308–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308int cliLuaMTime(lua_State* L) {
309 std::error_code err;
310 auto time = fs::last_write_time(cliGetString(L, 1), err);
311 lua_pushnumber(L, err ? 0.0 : s_cast<lua_Number>(time.time_since_epoch().count()));
312 return 1;
313}
314
315int cliLuaSystem(lua_State* L) {
316 auto command = cliGetString(L, 1);

Callers

nothing calls this directly

Calls 4

last_write_timeFunction · 0.85
cliGetStringFunction · 0.85
lua_pushnumberFunction · 0.50
countMethod · 0.45

Tested by

no test coverage detected