ladybird/Kernel/i8253.h
Andreas Kling 95c3442d59 Implement event loop timers.
GObjects can now register a timer with the GEventLoop. This will eventually
cause GTimerEvents to be dispatched to the GObject.

This needed a few supporting changes in the kernel:

- The PIT now ticks 1000 times/sec.
- select() now supports an arbitrary timeout.
- gettimeofday() now returns something in the tv_usec field.

With these changes, the clock window in guitest2 finally ticks on its own.
2019-02-01 03:50:06 +01:00

12 lines
142 B
C++

#pragma once
#include <AK/Types.h>
#define TICKS_PER_SECOND 1000
namespace PIT {
void initialize();
dword ticks_since_boot();
}