[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] do_gettimeofday().
From: gzeljko <gzeljko@sezampro.yu>
> I'm just testing RTLinux (and hardware).
> Motivated with this thread I write small test program (appended)
> for uniprocessor pentium machine to know what we are talking about.
>
> On my test machine (K6/200) it givs stable (2-3 ppm) drift cca. 160 ppm.
>
Exploreing farther I found it's easy solvable, by patching RTLinux to make
scaler_pentium_to_hrtime public and writeing own calibration routine.
It's works nice, drift is 0 (as it's depend of software).
Now, I'm wondering why scaler_pentium_to_hrtime is private? Probably
there is reson. (given that RTLinux is really nice work).
But, time calibration is definite trade-off: spent time vs accuracy, so it's
worth IMHO to allow customisation (calibration module?).
gzeljko