Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
lib
libc
musl
src
time
time.c
pretty
plain
permalink
blame
history
•
10 lines
•
170 B
1
#include <time.h>
2
#include "syscall.h"
3
4
time_t time(time_t *t)
5
{
6
	struct timespec ts;
7
	__clock_gettime(CLOCK_REALTIME, &ts);
8
	if (t) *t = ts.tv_sec;
9
	return ts.tv_sec;
10
}