2020-06-05 23:44:30 +02:00
|
|
|
#ifndef UTIL_TIME_H
|
|
|
|
#define UTIL_TIME_H
|
|
|
|
|
2020-06-05 23:50:00 +02:00
|
|
|
#include <time.h>
|
|
|
|
|
2020-06-05 23:44:30 +02:00
|
|
|
/**
|
|
|
|
* Get the current time, in milliseconds.
|
|
|
|
*/
|
|
|
|
uint32_t get_current_time_msec(void);
|
|
|
|
|
2020-06-05 23:50:00 +02:00
|
|
|
/**
|
|
|
|
* Convert a timespec to milliseconds.
|
|
|
|
*/
|
|
|
|
int64_t timespec_to_msec(const struct timespec *a);
|
|
|
|
|
2020-06-05 23:44:30 +02:00
|
|
|
#endif
|