Agora
1.2.0
Agora project
|
Functions | |
static double | GetTimeUs () |
static double | GetTime () |
static size_t | Rdtsc () |
Return the TSC. More... | |
static size_t | WorkerRdtsc () |
static void | NanoSleep (size_t ns, double freq_ghz) |
Sleep for some nanoseconds. More... | |
static double | MeasureRdtscFreq () |
static double | CyclesToSec (size_t cycles, double freq_ghz) |
Convert cycles measured by rdtsc with frequence freq_ghz to seconds. More... | |
static double | CyclesToMs (size_t cycles, double freq_ghz) |
static double | CyclesToUs (size_t cycles, double freq_ghz) |
static double | CyclesToNs (size_t cycles, double freq_ghz) |
static size_t | MsToCycles (double ms, double freq_ghz) |
static size_t | UsToCycles (double us, double freq_ghz) |
static size_t | NsToCycles (double ns, double freq_ghz) |
static double | SecSince (const struct timespec &t0) |
Return seconds elapsed since timestamp t0 . More... | |
static double | NsSince (const struct timespec &t0) |
Return nanoseconds elapsed since timestamp t0 . More... | |
|
inlinestatic |
Convert cycles measured by rdtsc with frequence freq_ghz
to milliseconds
|
inlinestatic |
Convert cycles measured by rdtsc with frequence freq_ghz
to nanoseconds
|
inlinestatic |
Convert cycles measured by rdtsc with frequence freq_ghz
to seconds.
|
inlinestatic |
Convert cycles measured by rdtsc with frequence freq_ghz
to microseconds
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Measure the frequency of RDTSC based by comparing against CLOCK_REALTIME. This is a pretty function that should be called only during initialization.
|
inlinestatic |
|
inlinestatic |
Sleep for some nanoseconds.
|
inlinestatic |
Return nanoseconds elapsed since timestamp t0
.
|
inlinestatic |
|
inlinestatic |
Return the TSC.
|
inlinestatic |
Return seconds elapsed since timestamp t0
.
|
inlinestatic |
|
inlinestatic |
Return the TSC or zero, depending on whether timing of workers is enabled