Method | Description | |
---|---|---|
clock ( LuaState luaState ) : double |
Returns the approximate CPU time the application run.
|
|
date ( LuaState luaState, string format, double time ) : string |
Returns the date/time as a formatted string or in a table.
|
|
difftime ( LuaState luaState, double timeA, double timeB ) : double |
Subtracts the second of the first value and rounds the result.
|
|
time ( LuaState luaState ) : double |
Returns the system time in seconds past the unix epoch. If a table is supplied, the function attempts to build a system time with the specified table members.
|
public static clock ( LuaState luaState ) : double | ||
luaState | LuaState | Pointer to lua_State struct. |
return | double |
public static date ( LuaState luaState, string format, double time ) : string | ||
luaState | LuaState | Pointer to lua_State struct. |
format | string |
/// The format string.
/// |
time | double | Time to use for the format. |
return | string |
public static difftime ( LuaState luaState, double timeA, double timeB ) : double | ||
luaState | LuaState | Pointer to lua_State struct. |
timeA | double | The first value. |
timeB | double | The value to subtract. |
return | double |
public static time ( LuaState luaState ) : double | ||
luaState | LuaState | Pointer to lua_State struct. |
return | double |