DOS provides real time clock functions with a resolution of 55 milliseconds. Unfortunately, this is not sufficient for many applications. By directly accessing the IBM PC hardware, however, one can theoretically develop a timing function with the same resolution of the system clock. Direct hardware access, however, is not without side effects. The following paper discusses the difficulties in achieving high resolution timings and provides a practical Ada solution.
/lp/association-for-computing-machinery/a-high-resolution-event-timer-ada-package-for-dos-environments-cNILh9kcFQ