15 #include "int_sizes.h"
22 #define TIMESTAMP_FORMAT UINT64_FORMAT
time_t timestamp_file(const char *file)
Get the last modified time of a file.
timestamp_t timestamp_get(void)
Get the current time.
UINT64_T timestamp_t
A type to hold the current time, in microseconds since January 1st, 1970.
Definition: timestamp.h:20
void timestamp_sleep(timestamp_t interval)
Sleep for a specified time.
int timestamp_fmt(char *buf, size_t size, const char *fmt, timestamp_t ts)
Formats timestamp_t ts according to the format specification fmt and stores the result as a string in...