]> git.sesse.net Git - cubemap/commit
Change the connected time from time_t to timespec.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 21 Jul 2015 23:08:00 +0000 (01:08 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 21 Jul 2015 23:08:00 +0000 (01:08 +0200)
commitb57530552825a13a3cd1924bda99e5e237c722a4
treed8abafc131a47b22a44767e9f9934abbb3b2e309
parent0e96bbf9ee0fbebd5fe3fba4d186c0e0d73c9a32
Change the connected time from time_t to timespec.

The primary gain as the code stands is that we become immune to
issues with the clock going backwards etc. in logs (since we can
now use a monotonic timer).

However, the motivating change is that we will soon be implementing request
read timeouts. At that point, not only will the clock data be much more
important to get right, but it will also be nice to have more fine-grained
timestamps to be able to locate clients semi-uniquely in a sorted list.
accesslog.cpp
client.cpp
client.h
state.proto
stats.cpp