[TODO] Use monotonic clock if possible in state.c
Reported by zimbatm | January 26th, 2008 @ 06:13 AM | in 1.1
In state.c, "state_collect" and "state_major_collect" methods use "gettimeofday" to calculate an interval. This could possibly cause timing problems if the system date is changed between the start and stop times.
I find that "get_clock" in libev's "ev.c" is a good implementation but it is not exported in "ev.h". It would be nice if libev would also export it's cross-platform timers independently.
Comments and changes to this ticket
-
zimbatm January 26th, 2008 @ 06:15 AM
- → State changed from new to open
- → Title changed from [TODO] Use monotonic clock in the state to [TODO] Use monotonic clock if possible in state.c
-
Ryan Davis February 29th, 2008 @ 03:13 PM
- → Assigned user changed from to Evan Phoenix
lots of words. no grok. saw C files. assigning to evan. :P
-
zimbatm March 1st, 2008 @ 02:17 AM
Oh, right. I expected Chris Shoemaker to come up and say something. He's the one that integrated libev if I remember well.
-
Evan Phoenix March 12th, 2008 @ 03:00 PM
- → Milestone changed from 1.0 preview to 1.1
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
