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:
Alex Szpakowski
2013-05-09 23:12:50 -03:00
parent 4952ebd5d9
commit 9fc2a085cd
8 changed files with 111 additions and 85 deletions
-7
View File
@@ -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 }
};