mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-14 01:04:38 +03:00
ab11f42094
This introduces a tiny amount of timer drift which I will have to fix somehow eventually, but it's a huge improvement in timing consistency as we no longer suddenly jump from e.g 10:45:49.123 to 10:45:50.000.
14 lines
171 B
C++
14 lines
171 B
C++
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
|
|
#define TICKS_PER_SECOND 1000
|
|
|
|
namespace PIT {
|
|
|
|
void initialize();
|
|
dword ticks_this_second();
|
|
dword seconds_since_boot();
|
|
|
|
}
|