How to use TimerLib on X64?


vapciogaming@...
 

Hello everyone, noob here.

I need an accurate timestamp counter for a UEFI_APPLICATION. currently i'm ussing MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf for the TimerLib but GetPerformanceCounter always returns 0. I read a bit about APIC and it seems that it needs to be initialized to work? What do I need to do to get GetPerformanceCounter to work?

Join discuss@edk2.groups.io to automatically receive all group messages.