Improvements to timing.
- Fixed bug in timing of kinematics, was under-reported. - Moved timing of inertia and collision into respective functions, in preparation for multi-threading. - Detailed profiling in `testspeed` is always on, removed command-line flag. - Improved `testspeed` self-documentation. PiperOrigin-RevId: 571989548 Change-Id: If0e3cc17f6f3511b98fc36339f406a19968a9361
This commit is contained in:
committed by
Copybara-Service
parent
a1b39d5959
commit
18d9f1abb0
@@ -35,6 +35,7 @@
|
||||
#define TM_START mjtNum _tm = (mjcb_time ? mjcb_time() : 0);
|
||||
#define TM_RESTART _tm = (mjcb_time ? mjcb_time() : 0);
|
||||
#define TM_END(i) {d->timer[i].duration += ((mjcb_time ? mjcb_time() : 0) - _tm); d->timer[i].number++;}
|
||||
#define TM_ADD(i) {d->timer[i].duration += ((mjcb_time ? mjcb_time() : 0) - _tm);}
|
||||
#define TM_START1 mjtNum _tm1 = (mjcb_time ? mjcb_time() : 0);
|
||||
#define TM_END1(i) {d->timer[i].duration += ((mjcb_time ? mjcb_time() : 0) - _tm1); d->timer[i].number++;}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user