[BRLTTY] gettimeofday

Vladimir 'φ-coder/phcoder' Serbinenko phcoder at gmail.com
Mon Jun 18 08:39:32 EDT 2012


Previously it was discussed how to make an equivalent of gettimeofday to
work on GRUB. Now, I've realized that the current code using
gettimeofday is wrong since the date gives no guaranty of being
monotonic, and especially it isn't if someone runs "date" or "ntpdate"
which is common operation, especially on systems where the RTC battery
is failing. brltty should use time/gettimeofday only for timestamping
logs and CLOCK_MONOTONIC (probably with some wrapper to make other
monotonic clock sources easy to add) for all timing and timeout purposes.
-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 294 bytes
Desc: OpenPGP digital signature
URL: <http://mielke.cc/pipermail/brltty/attachments/20120618/d65095ee/attachment.sig>


More information about the BRLTTY mailing list