| 240 | } |
| 241 | |
| 242 | static inline void |
| 243 | cputick2timespec(uint64_t runtime, struct timespec *ats) |
| 244 | { |
| 245 | runtime = cputick2usec(runtime); |
| 246 | ats->tv_sec = runtime / 1000000; |
| 247 | ats->tv_nsec = runtime % 1000000 * 1000; |
| 248 | } |
| 249 | |
| 250 | void |
| 251 | kern_thread_cputime(struct thread *targettd, struct timespec *ats) |
no test coverage detected