mirror of
https://github.com/anrieff/libcpuid
synced 2024-12-16 16:35:45 +00:00
Increase CPU clock accuracy in bus clock calculation
The CPU clock is computed once and cached, so it needs to be accurate. In libcpuid.h, 100ms is recommended.
This commit is contained in:
parent
4a077265fd
commit
77c6a9a666
1 changed files with 1 additions and 1 deletions
|
@ -832,7 +832,7 @@ static double get_info_bus_clock(struct msr_driver_t* handle, struct cpu_id_t *i
|
|||
uint64_t reg;
|
||||
|
||||
if(clock == 0)
|
||||
clock = cpu_clock_measure(50, 1);
|
||||
clock = cpu_clock_measure(100, 1);
|
||||
|
||||
if(id->vendor == VENDOR_INTEL) {
|
||||
/* Refer links above
|
||||
|
|
Loading…
Reference in a new issue