blob: c49b70108fcba78fce6181399839303b591742a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef _TIMESTAMP_H
#define _TIMESTAMP_H
#ifdef __cplusplus
extern "C"
{
#endif
#include "utils.h"
struct timestamp *timestamp_new(uint64_t update_interval_ms);
void timestamp_free(struct timestamp *ts);
void timestamp_update(struct timestamp *ts);
uint64_t timestamp_update_interval_ms(struct timestamp *ts);
uint64_t timestamp_get_sec(struct timestamp *ts);
uint64_t timestamp_get_msec(struct timestamp *ts);
#ifdef __cplusplus
}
#endif
#endif
|