Menu

#22 Using gettimeofday for timeouts

all
open
Andreas
None
1
2019-01-15
2019-01-15
LeoMar
No

Hi,

Still gettimeofday API is being used in eventloop.cpp for measuring timeouts.
Using gettimeofday for such timeouts gets affected by time change by
manually or from other processes like NTP daemon. So it is recommended
to use clock_gettime(MONOTONIC) for measuring timeout scenario's.
clock_gettime is already being used in dbus package also.

So do we have any specific reason to still use gettimeofday API for
timeouts in dbus-c++?

Regards,

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.