Merge branch 'master' of https://github.com/bulletphysics/bullet3
This commit is contained in:
@@ -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.
|
||||||
|
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)
|
inline void Profile_Get_Ticks(unsigned long int * ticks)
|
||||||
|
|||||||
@@ -52,6 +52,11 @@ public:
|
|||||||
/// Returns the time in us since the last call to reset or since
|
/// Returns the time in us since the last call to reset or since
|
||||||
/// the Clock was created.
|
/// the Clock was created.
|
||||||
unsigned long int getTimeMicroseconds();
|
unsigned long int getTimeMicroseconds();
|
||||||
|
|
||||||
|
/// Returns the time in s since the last call to reset or since
|
||||||
|
/// the Clock was created.
|
||||||
|
btScalar getTimeSeconds();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct btClockData* m_data;
|
struct btClockData* m_data;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user