Remove: rdtsc and TIC/TOC based on CPU ticks (#11856)

Use TIC/TOC based on std::chrono instead. This information is also
easier to compare with others, as although it depends on CPU, it
means a bit more if "yours takes 4ms and mine takes 10ms".
This commit is contained in:
Patric Stout
2024-01-21 16:38:15 +01:00
committed by GitHub
parent fe035c306e
commit fa8294ebe7
3 changed files with 4 additions and 105 deletions

View File

@@ -10,12 +10,6 @@
#ifndef CPU_H
#define CPU_H
/**
* Get the tick counter from the CPU (high precision timing).
* @return The count.
*/
uint64_t ottd_rdtsc();
/**
* Get the CPUID information from the CPU.
* @param info The retrieved info. All zeros on architectures without CPUID.