[tor-bugs] #10168 [Tor]: Use monotonic clocks for time as appropriate

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Mar 12 14:40:25 UTC 2014


#10168: Use monotonic clocks for time as appropriate
-----------------------------+--------------------------------
     Reporter:  nickm        |      Owner:
         Type:  enhancement  |     Status:  new
     Priority:  normal       |  Milestone:  Tor: 0.2.6.x-final
    Component:  Tor          |    Version:
   Resolution:               |   Keywords:
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+--------------------------------
Changes (by nickm):

 * milestone:  Tor: 0.2.5.x-final => Tor: 0.2.6.x-final


Comment:

 We came up with a simple ratcheted implementation in
 tor_gettimeofday_cached_monotonic. Doing the right thing here will be a
 bit tricky, given how we need to cache times here too, so I think we're
 okay deferring to 0.2.6.

 (For an overview of how complicated the right thing is here, peruse
 Libevent's https://github.com/libevent/libevent/blob/master/evutil_time.c
 )

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10168#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list