c-libp2p/include/libp2p/os/timespec.h

12 lines
165 B
C
Raw Normal View History

2017-10-11 16:23:25 +00:00
#pragma once
/**
* mac doesn't have timespec_get
*/
#ifdef __MACH__
#include <time.h>
#define TIME_UTC 1
int timespec_get(struct timespec *ts, int base);
#endif