mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 05:40:05 +00:00
Update btQuickprof.cpp
This commit is contained in:
parent
4a43eab4dd
commit
6ff7a6d48b
@ -237,6 +237,14 @@ unsigned long int btClock::getTimeMicroseconds()
|
||||
|
||||
|
||||
|
||||
/// Returns the time in s since the last call to reset or since
|
||||
/// the Clock was created.
|
||||
inline btScalar btClock::getTimeSeconds()
|
||||
{
|
||||
static const btScalar microseconds_to_seconds = btScalar(0.000001);
|
||||
return btScalar(getTimeMicroseconds()) * microseconds_to_seconds;
|
||||
}
|
||||
|
||||
|
||||
|
||||
inline void Profile_Get_Ticks(unsigned long int * ticks)
|
||||
|
Loading…
Reference in New Issue
Block a user