Questions tagged [hpet]

The High Precision Event Timer (HPET) is a hardware timer used in personal computers. It was developed jointly by Intel and Microsoft and has been incorporated in PC chipsets since circa 2005.

The High Precision Event Timer (HPET) is a hardware timer used in personal computers. It was developed jointly by Intel and Microsoft and has been incorporated in PC chipsets since circa 2005.

Older operating systems that do not support a hardware HPET device can only use older timing facilities, such as the programmable interval timer (PIT) or the real-time clock (RTC).

7 questions
2
votes
1 answer

Does Windows provide any API access to the HPET?

I'm currently curious about using the HPET timer to get microsecond resolution timing. There seems to be very little information about using this device online. I did find information that Linux provides an HPET driver and there is an example in the…
James Parsons
  • 6,097
  • 12
  • 68
  • 108
1
vote
0 answers

lowest latency/high resolution, highest timing guarantee, timing/timer on windows?

I've a -windows only/winapi- c++ application that needs to execute some instruction at specific small intervals, the code that's to be periodically run is small, and takes under a millisecond, using sleep or std::unique_lock lock{…
rimuru
  • 29
  • 3
1
vote
0 answers

WSL does not have hpet at /dev/hpet

/dev/hpet appears to be absent in WSL2 (Ubuntu 20.04) - is there any way to enable it to allow for applications that read from /dev/hpet?
Dave
  • 21
  • 2
1
vote
1 answer

HPET's frequency vs CPU frequency for measuring time

I need to measure function execution time in nanoseconds. Now I want to understand if my computer can do that and what is the precision of measurement. There was a suggestion to use QueryPerformanceFrequency() to obtain the HPET's frequency and…
Narek
  • 38,779
  • 79
  • 233
  • 389
0
votes
0 answers

Use HPET timer with EDK2 framework

I am currently developing on a UEFI program using the EDK2 framework and would like to fetch HPET time or utilize the HPET interrupt as a countdown timer. I have attempted to use HpetTimerDxe from the PcAtChipsetPkg, but I have no idea how to…
Kaiser
  • 9
  • 1
0
votes
0 answers

OS Configure HPET timer in nanoseconds

I'm writing an OS from scratch to run under qemu and I set up HPET timer. To tick every 1 millisecond, I set up: frequency = 10^15 / counter_clock_period; ticks = frequency / 1000; Ticks are every 1 millisecond. frequency is 100000000 (printed to…
0
votes
0 answers

Device HPET in DSDT patch returns error while compiling "object is not accessible from this scope (BUF0)"

Does anyone know how to get rid of this compiling error? This is device in the dsdt, I am using a patch from a repository. The original device HPET is: Device (HPET) { Name (_HID, EisaId ("PNP0103")) // _HID:…
Chriz74
  • 1,410
  • 3
  • 23
  • 47