mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
time_monotonic_ms values did wrap every ~24 days, leading to problems in code that did not cope with that. Instead of fixing all places where relative comparisons with time_monotonic_ms() are made, just use a bigger datatype. Convert all users to the new type.
16 lines
233 B
C
16 lines
233 B
C
#include <stdint.h>
|
|
|
|
#ifndef _ABS_TIME_H_
|
|
#define _ABS_TIME_H_
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
time_t time_monotonic(void);
|
|
int64_t time_monotonic_ms(void);
|
|
uint64_t time_monotonic_us(void);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|