added lua function for GetTimeSinceStart
Allows checking time within a single update. This can be used to halt processes which would otherwise cause lag.
This commit is contained in:
@@ -147,6 +147,9 @@ float RageTimer::Difference(const RageTimer &lhs, const RageTimer &rhs)
|
|||||||
return float(secs) + float(us) / TIMESTAMP_RESOLUTION;
|
return float(secs) + float(us) / TIMESTAMP_RESOLUTION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include "LuaManager.h"
|
||||||
|
LuaFunction(GetTimeSinceStart, RageTimer::GetTimeSinceStartFast())
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001-2003 Chris Danford, Glenn Maynard
|
* Copyright (c) 2001-2003 Chris Danford, Glenn Maynard
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
|||||||
Reference in New Issue
Block a user