blob: cec1ca360aabb56b6b723d664b75a103679d2b27 [file] [log] [blame]
#include <time.h>
time_t time(time_t *t)
{
struct timespec ts;
__clock_gettime(CLOCK_REALTIME, &ts);
if (t) *t = ts.tv_sec;
return ts.tv_sec;
}