blob: ad0480f9ea942bcab3cd2257a61fbd4637e161d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#include <time.h>
#include "syscall.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;
}
|