36 for (
UInt64 i = 0; i < numIterations; ++i)
45 asm volatile(
"nop\n\t");
56 #if defined(__APPLE__) && defined(__aarch64__)
58 nanoSleep(
static_cast<long>(microSeconds * 1000.0));
71 sleepTime.tv_sec = nanoSeconds / 1000000000;
72 sleepTime.tv_nsec = nanoSeconds % 1000000000;
74 nanosleep( &sleepTime, 0 );
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
void microSleep(Real microSeconds)
Sleep the current thread.
void noopLoop(UInt64 numIterations)