projects
/
invirt/third/libt4.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported from 6.824 labs
[invirt/third/libt4.git]
/
gettime.h
1
#ifndef gettime_h
2
#define gettime_h
3
4
#ifdef __APPLE__
5
typedef enum {
6
CLOCK_REALTIME,
7
CLOCK_MONOTONIC,
8
CLOCK_PROCESS_CPUTIME_ID,
9
CLOCK_THREAD_CPUTIME_ID
10
} clockid_t;
11
12
int clock_gettime(clockid_t clk_id, struct timespec *tp);
13
#endif
14
15
#endif