Correct handling of slow clocks under linux.
Change-Id: I9a1b08d5457caa6739220603bbd37b00febc64d7
Этот коммит содержится в:
коммит произвёл
JamesAdrian Edwards
родитель
3e50adc7ce
Коммит
29b5b5c029
@@ -93,6 +93,8 @@ fast_clock::init::init() {
|
||||
|
||||
fast_clock::freq = double(min) / duration_in_seconds(elapsed);
|
||||
fast_clock::period_ps = 1e12 / fast_clock::freq;
|
||||
// printf("Timer setup took %f ms\n", duration_in_seconds(elapsed)*1000.0f);
|
||||
// printf("Fast clock frequency: %f MHz\n", double(fast_clock::freq)/1e6);
|
||||
}
|
||||
|
||||
double accurate_clock::period_ns;
|
||||
|
||||
Ссылка в новой задаче
Block a user