| 2103 | */ |
| 2104 | |
| 2105 | uint64_t |
| 2106 | cputick2usec(uint64_t tick) |
| 2107 | { |
| 2108 | |
| 2109 | if (tick > 18446744073709551LL) /* floor(2^64 / 1000) */ |
| 2110 | return (tick / (cpu_tickrate() / 1000000LL)); |
| 2111 | else if (tick > 18446744073709LL) /* floor(2^64 / 1000000) */ |
| 2112 | return ((tick * 1000LL) / (cpu_tickrate() / 1000LL)); |
| 2113 | else |
| 2114 | return ((tick * 1000000LL) / cpu_tickrate()); |
| 2115 | } |
| 2116 | |
| 2117 | cpu_tick_f *cpu_ticks = tc_cpu_ticks; |
| 2118 |
no test coverage detected