mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Updated love.timer.getTime to be microsecond-precise and monotonic (thanks Boolsheet), removed the now-obsolete love.timer.getMicroTime (issue #492)
This commit is contained in:
@@ -68,12 +68,6 @@ int w_getTime(lua_State *L)
|
||||
return 1;
|
||||
}
|
||||
|
||||
int w_getMicroTime(lua_State *L)
|
||||
{
|
||||
lua_pushnumber(L, instance->getMicroTime());
|
||||
return 1;
|
||||
}
|
||||
|
||||
// List of functions to wrap.
|
||||
static const luaL_Reg functions[] =
|
||||
{
|
||||
@@ -83,7 +77,6 @@ static const luaL_Reg functions[] =
|
||||
{ "getAverageDelta", w_getAverageDelta },
|
||||
{ "sleep", w_sleep },
|
||||
{ "getTime", w_getTime },
|
||||
{ "getMicroTime", w_getMicroTime },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user