64 bool hasElapsedMs(
long long milliseconds);
69 long long elapsedNowMS();
74 long long elapsedNowUS();
81 void elapsed(
unsigned int& seconds,
unsigned int& milliseconds,
unsigned int& microseconds)
const;
86 void elapsed(
Timing &timing)
const;
91 void elapsedNow(
Timing &timing);
96 static void split(
long long timeNs,
Timing &timing);
103 static void split(
long long timeUs,
unsigned int& seconds,
unsigned int& milliseconds,
unsigned int& microseconds);
110 double elapsedS()
const;
117 long long elapsedMS()
const;
125 long long elapsedUS()
const;
200 unsigned int ms = 0u,
201 unsigned int us = 0u);
212 unsigned int us = 0u);
215 const char _3es_coreAPI *
timeValueString(
char *buffer,
size_t bufferLen,
double seconds);
221 const char _3es_coreAPI *
timeValueString(
char *buffer,
size_t bufferLen,
long double seconds);
Definition: 3esbounds.h:13
char _3es_coreAPI * timeValueString(char *buffer, size_t bufferLen, Timer &t)
Converts a Timer to a time string indicating the elapsed time.
long long s
Number of seconds elapsed.
Definition: 3estimer.h:15
unsigned short ms
Number of milliseconds [0, 1000).
Definition: 3estimer.h:17
Timing()
Initialise to zero.
Definition: 3estimer.h:24
unsigned short ns
Number of nanoseconds [0, 1000).
Definition: 3estimer.h:21
unsigned short us
Number of microseconds [0, 1000).
Definition: 3estimer.h:19
A timing information structure.
Definition: 3estimer.h:12
A high precision timer implementation.
Definition: 3estimer.h:43