modern timers in DOS (32bit) (Developers)
TSC should be mostly accessible also under pmode OSes (not privileged level required). But maybe after Spectre/Meltdown bugs was revealed some OSes might changed policy to not alow user read TSC anymore (disable the bit) :\
Also TSC may have some quirks like it may depend on current CPU multiplier or clock modulation, the behavior has changed during CPU generations. Also under multicore OS without setting the affinity to a single core your program may read TSC of a different CPU core that may be desynchronized due to dynamic multiplier changing and core parking everytime and you end with a insane time difference...
Also modern CPUs has some performance counters but I never tried them.
And finally some warning that CPU may spend some random time inside SMI handler that has higher pririty over any common INT and you don't have control over it so don't rely with a PC on generating precise timing waveforms, for such case use some dedicated microcontroller...
---
DOS gives me freedom to unlimited HW access.
Complete thread:
- modern timers in DOS (32bit) - LowLevel, 05.05.2022, 11:11
- modern timers in DOS (32bit) - bretjohn, 05.05.2022, 19:05
- modern timers in DOS (32bit) - mceric, 05.05.2022, 20:53
- modern timers in DOS (32bit) - Japheth, 06.05.2022, 08:06
- modern timers in DOS (32bit) - LowLevel, 06.05.2022, 08:37
- modern timers in DOS (32bit) - LowLevel, 06.05.2022, 08:29
- modern timers in DOS (32bit) - RayeR, 18.05.2022, 22:40
- modern timers in DOS (32bit) - Japheth, 06.05.2022, 08:06
- modern timers in DOS (32bit) - LowLevel, 06.05.2022, 08:08
- modern timers in DOS (32bit) - bretjohn, 06.05.2022, 20:01
- modern timers in DOS (32bit) - tkchia, 08.05.2022, 17:57
- modern timers in DOS (32bit) - bretjohn, 06.05.2022, 20:01
- modern timers in DOS (32bit) - mceric, 05.05.2022, 20:53
- modern timers in DOS (32bit) - Laaca, 05.05.2022, 20:56
- modern timers in DOS (32bit) - LowLevel, 06.05.2022, 08:30
- modern timers in DOS (32bit) - bretjohn, 05.05.2022, 19:05