| 353 | } |
| 354 | |
| 355 | u64 OS::getProcessCpuTime(u64* utime, u64* stime) { |
| 356 | struct tms buf; |
| 357 | clock_t real = times(&buf); |
| 358 | *utime = buf.tms_utime; |
| 359 | *stime = buf.tms_stime; |
| 360 | return real; |
| 361 | } |
| 362 | |
| 363 | u64 OS::getTotalCpuTime(u64* utime, u64* stime) { |
| 364 | int fd = open("/proc/stat", O_RDONLY); |
nothing calls this directly
no outgoing calls
no test coverage detected