9srv Manual Collection/plan9/cputime(2) | 9srv Manual Collection/plan9/cputime(2) |
---|
long times(long t[4])
double cputime(void)
void cycles(uvlong *cyclep)
These functions read /dev/cputime, opening that file when they are first called.
Cycles reads the processor's timestamp counter of cycles since reset, if any, and stores it via cyclep. Currently supported architectures are 386, amd64, and power; on all others, cycles will store zero.
9srv Manual Collection/plan9/cputime(2) | Rev: Mon Feb 11 22:19:15 GMT 2013 |