# include <spawn.h> // posix_spawn
#endif
#include "request.h"
+#include <sys/time.h>
#define assert(cnd) do{ \
if( !(cnd) ) { \
return rv;
}
+
+int64_t native_timestamp(void)
+{
+ struct timeval tv;
+ gettimeofday(&tv, NULL);
+ return tv.tv_sec*1000 + tv.tv_usec / 1000;
+}