Searched refs:mtimer_counter (Results 1 – 2 of 2) sorted by relevance
2196 uint64_t mtimer_counter = CPU_Get_MTimer_Counter(); in CPU_Get_MTimer_US() local2198 if (mtimer_counter < 10) { in CPU_Get_MTimer_US()2199 mtimer_counter = CPU_Get_CPU_Cycle(); in CPU_Get_MTimer_US()2225 uint64_t mtimer_counter = CPU_Get_MTimer_Counter(); in CPU_Get_MTimer_MS() local2227 if (mtimer_counter < 10) { in CPU_Get_MTimer_MS()2228 mtimer_counter = CPU_Get_CPU_Cycle(); in CPU_Get_MTimer_MS()2235 mtimer_counter = CPU_Get_MTimer_Counter(); in CPU_Get_MTimer_MS()2237 return mtimer_counter / 1000; in CPU_Get_MTimer_MS()2239 if (mtimer_counter < (1 << 30)) { in CPU_Get_MTimer_MS()2240 return (uint32_t)mtimer_counter / 1000; in CPU_Get_MTimer_MS()[all …]
1310 uint64_t mtimer_counter = CPU_Get_MTimer_Counter(); in CPU_Get_MTimer_US() local1311 if (mtimer_counter == 0) { in CPU_Get_MTimer_US()1312 mtimer_counter = CPU_Get_CPU_Cycle(); in CPU_Get_MTimer_US()1317 return mtimer_counter * 1000 / (clk / 1000); in CPU_Get_MTimer_US()1319 return mtimer_counter / (clk / 1000 / 1000); in CPU_Get_MTimer_US()1334 uint64_t mtimer_counter = CPU_Get_MTimer_Counter(); in CPU_Get_MTimer_MS() local1335 if (mtimer_counter == 0) { in CPU_Get_MTimer_MS()1336 mtimer_counter = CPU_Get_CPU_Cycle(); in CPU_Get_MTimer_MS()1340 return mtimer_counter / (clk / 1000); in CPU_Get_MTimer_MS()
Completed in 12 milliseconds