From 863292fa3d7c0eec4367ac193231f554b295965b Mon Sep 17 00:00:00 2001 From: Avik De Date: Sun, 26 Nov 2017 21:09:57 -0500 Subject: [PATCH] replaced C++11 code --- examples/TwoJoint/TwoJointMain.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/TwoJoint/TwoJointMain.cpp b/examples/TwoJoint/TwoJointMain.cpp index d21c81d3c..db56771af 100644 --- a/examples/TwoJoint/TwoJointMain.cpp +++ b/examples/TwoJoint/TwoJointMain.cpp @@ -1,8 +1,6 @@ #include -#include -#include -#include - +#include +#include "../Utils/b3Clock.h" #include "SharedMemory/PhysicsClientC_API.h" #include "Bullet3Common/b3Vector3.h" #include "Bullet3Common/b3Quaternion.h" @@ -117,7 +115,7 @@ int main(int argc, char* argv[]) { // debugging output printf("%.3f\t%.3f\t%.3f\t%.3f\t%.3f\n", simTimeS, q[0], q[1], v[0], v[1]); - std::this_thread::sleep_for(std::chrono::microseconds(dtus1)); + b3Clock::usleep(1000.*1000.*FIXED_TIMESTEP); } b3DisconnectSharedMemory(kPhysClient); return 0;