Posted By
Krill on 2022-09-21 04:17:29
| Re: How to time a disk operation?
And note that reading two timer high-bytes in a loop until they remain the same is only required for high-precision measurements involving reading the low-bytes as well (to counter low-byte wrap in the face of non-atomic 16-bit reads).
By simply reading both high-bytes, their difference yields a low-precision estimation, which could be good enough for your purposes.
BASIC might introduce a delay between both reads, but this should only add a little more to the measurement error.
|