repo.or.cz
/
prop.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
update patch level
[prop.git]
/
configure-dir
/
testtimes.C
blob
46d4694e76ecdad1ff080b866a5f849758014e7d
1
#include <sys/times.h>
2
3
int main()
4
{
5
struct tms usage_at_start;
6
times(&usage_at_start);
7
struct tms usage_at_end;
8
times(&usage_at_end);
9
clock_t x = usage_at_end.tms_utime - usage_at_start.tms_utime;
10
clock_t y = usage_at_end.tms_stime - usage_at_start.tms_stime;
11
return 0;
12
}