PatchworkOS
Loading...
Searching...
No Matches
clock.c
Go to the documentation of this file.
1#include "clock.h"
2
3#include <sys/proc.h>
4
5static clock_t startTime = 0;
6
7void _clock_init(void)
8{
10}
11
13{
14 return uptime() - startTime;
15}
static clock_t startTime
Definition clock.c:5
void _clock_init(void)
Definition clock.c:7
clock_t _clock_get(void)
Definition clock.c:12
clock_t uptime(void)
System call for retreving the time since boot.
Definition uptime.c:6
__UINT64_TYPE__ clock_t
A nanosecond time.
Definition clock_t.h:13