libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
|
#include <gimbal_timer.h>
Data Fields | |
GblTimeSpec | startTime |
GblTimeSpec | stopTime |
GblTimeSpec | elapsedTime |
GblBool | active |
Related Symbols | |
(Note that these are not member symbols.) | |
Capturing | |
Methods used for capturing timing data | |
void | GblTimer_start (GblTimer *pSelf) |
void | GblTimer_stop (GblTimer *pSelf) |
void | GblTimer_continue (GblTimer *pSelf) |
Elapsed Time | |
Methods for measuring elapsed time | |
GblBool | GblTimer_isValid (const GblTimer *pSelf) |
double | GblTimer_elapsedSecs (const GblTimer *pSelf) |
double | GblTimer_elapsedMs (const GblTimer *pSelf) |
double | GblTimer_elapsedUs (const GblTimer *pSelf) |
uint64_t | GblTimer_elapsedNs (const GblTimer *pSelf) |
Represents a stopwatch-like nanosecond timer.
GblTimer is a nanosecond-resolution stopwatch-like timing API which is used for measuring elapsed time between a start and stop point.
Definition at line 40 of file gimbal_timer.h.
|
related |
Starts the timer, which will continue running until GblTimer_stop() is called.
|
related |
Stops the timer, recording the amount of time elapsed within GblTimer::elapsedTime.
|
related |
Continues the timer, recording elapsed time where it left off.
Returns GBL_TRUE if the timer contains a valid elapsed time measurement.
|
related |
Returns the amount of time elapsed in seconds.
|
related |
Returns the amount of time elapsed in milliseconds.
|
related |
Returns the amount of time elapsed in microseconds.
|
related |
Returns the amount of time elapsed in nanoseconds.
GblTimeSpec GblTimer::startTime |
Initial starting timestamp.
Definition at line 41 of file gimbal_timer.h.
GblTimeSpec GblTimer::stopTime |
Ending or stopping timestamp.
Definition at line 42 of file gimbal_timer.h.
GblTimeSpec GblTimer::elapsedTime |
Calculated elapsed time.
Definition at line 43 of file gimbal_timer.h.
GblBool GblTimer::active |
Whether the timer is active or not.
Definition at line 44 of file gimbal_timer.h.