Corrected the timing implementation of Box2d