cueOS  2.4
cueOS - Universal Show Control OS for ARM
ms_chronometer.h
1
13#ifndef DMX512_UTILS_H_
14#define DMX512_UTILS_H_
15
16#include <stdint.h>
17
18
22typedef struct{
23 uint32_t _ms_delta;
25
26
27void ms_chronometer_reset(ms_chronometer_s *ms_chronometer);
28uint32_t ms_chronometer_get_elapsed_ms(ms_chronometer_s *ms_chronometer);
29
30#endif
31
void ms_chronometer_reset(ms_chronometer_s *ms_chronometer)
Resets an mschronometer instance time delta to zero.
uint32_t ms_chronometer_get_elapsed_ms(ms_chronometer_s *ms_chronometer)
Returns elapsed time in milliseconds since last reset.
ms_chronometer structure object