#include "OgreBulletCollisionsWorld.h"
#include "Debug/OgreBulletCollisionsDebugDrawer.h"
+class _OgreBulletExport oClock\r
+{\r
+public:\r
+ oClock();\r
+\r
+ ~oClock();\r
+\r
+ /// Resets the initial reference time.\r
+ void reset();\r
+\r
+ /// Returns the time in ms since the last call to reset or since \r
+ /// the btClock was created.\r
+ unsigned long int getTimeMilliseconds();\r
+\r
+ /// Returns the time in us since the last call to reset or since \r
+ /// the Clock was created.\r
+ unsigned long int getTimeMicroseconds();\r
+\r
+private:\r
+ btClock *clock;\r
+};\r
+
namespace OgreBulletDynamics
{
// -------------------------------------------------------------------------
using namespace Ogre;
using namespace OgreBulletCollisions;
+oClock::oClock()
+{
+ clock = new btClock();
+}
+
+oClock::~oClock()
+{
+ delete clock;
+ clock = 0;
+}
+
+void oClock::reset()
+{
+ clock->reset();
+}
+
+unsigned long int oClock::getTimeMilliseconds()
+{
+ return clock->getTimeMilliseconds();
+}
+
+unsigned long int oClock::getTimeMicroseconds()
+{
+ return clock->getTimeMicroseconds();
+}
+
namespace OgreBulletDynamics
{
+#include <OgreBulletDynamicsWorld.h>
#include "globals.h"
#include "sbs.h"
#include "profiler.h"
extern SBS *sbs; //external pointer to the SBS engine
-static btClock gProfileClock;
+static oClock gProfileClock;
/*