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

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://mielke.cc/mailman/listinfo/brltty

Reply via email to