Fix var name
This commit is contained in:
@@ -118,9 +118,9 @@ main_thread_fn()
|
|||||||
#ifdef USE_INSTRUMENT
|
#ifdef USE_INSTRUMENT
|
||||||
if (instru_enabled) {
|
if (instru_enabled) {
|
||||||
uint64_t elapsed_us = (elapsed_timer.nsecsElapsed() - start_time) / 1000;
|
uint64_t elapsed_us = (elapsed_timer.nsecsElapsed() - start_time) / 1000;
|
||||||
uint64_t total_elapsed_us = (uint64_t)((double)tsc / cpu_s->rspeed * 1000);
|
uint64_t total_elapsed_ms = (uint64_t)((double)tsc / cpu_s->rspeed * 1000);
|
||||||
printf("[instrument] %llu, %llu\n", total_elapsed_us, elapsed_us);
|
printf("[instrument] %llu, %llu\n", total_elapsed_ms, elapsed_us);
|
||||||
if (instru_run_ms && total_elapsed_us >= instru_run_ms)
|
if (instru_run_ms && total_elapsed_ms >= instru_run_ms)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user