PatchworkOS
Loading...
Searching...
No Matches
uptime.c
Go to the documentation of this file.
1#include <stdio.h>
2#include <sys/io.h>
3
5
7{
8 clock_t result = _syscall_uptime();
9 if (result == ERR)
10 {
12 }
13 return result;
14}
#define errno
Error number variable.
Definition errno.h:27
clock_t uptime(void)
System call for retreving the time since boot.
Definition uptime.c:6
#define ERR
Integer error value.
Definition ERR.h:17
__UINT64_TYPE__ clock_t
A nanosecond time.
Definition clock_t.h:13
static clock_t _syscall_uptime(void)
Definition syscalls.h:133
static errno_t _syscall_errno(void)
Definition syscalls.h:118