cueOS  2.4
cueOS - Universal Show Control OS for ARM
MS Chronometer
Collaboration diagram for MS Chronometer:

Data Structures

struct  ms_chronometer_s
 ms_chronometer structure object More...
 

Functions

void ms_chronometer_reset (ms_chronometer_s *ms_chronometer)
 Resets an mschronometer instance time delta to zero. More...
 
uint32_t ms_chronometer_get_elapsed_ms (ms_chronometer_s *ms_chronometer)
 Returns elapsed time in milliseconds since last reset. More...
 

Detailed Description

In order to keep track of time, a chronometer capable of producing accurate millisecond count is required. mschonometer conveys time information using a time delta value which can be set and reset throughout time. Once reset, elapsed time may be processed using the time delta value as a start offset

Function Documentation

◆ ms_chronometer_get_elapsed_ms()

uint32_t ms_chronometer_get_elapsed_ms ( ms_chronometer_s ms_chronometer)

Returns elapsed time in milliseconds since last reset.

Parameters
ms_chronometerms_chronometer instance to be reseted
Returns
uint32_t elapsed time in milliseconds

Definition at line 33 of file ms_chronometer.c.

◆ ms_chronometer_reset()

void ms_chronometer_reset ( ms_chronometer_s ms_chronometer)

Resets an mschronometer instance time delta to zero.

Parameters
ms_chronometerms_chronometer instance to be reseted

Definition at line 23 of file ms_chronometer.c.