[patch] "monotonic wallclock time"

Nils Goroll slink at schokola.de
Thu Mar 31 18:32:19 CEST 2016

https://github.com/varnishcache/varnish-cache/issues/1874 somehow caught my
attention because years ago I made an attempt to suggest that we should use the
monotonic clock almost always.

So here's a suggestion for a simple interface which would allow us to still use
wallclock time, but make it partially monotonic based on a timestamp:
VTIM_ts_now() calculates a new wallclock time based on the monotonic clock delta.

I think there are some other places where we could just use monotonic
timestamps, but for the remaining timestamps this suggestion could be an option.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-simple-interface-to-make-wallclock-time-monoto.patch
Type: text/x-patch
Size: 19284 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20160331/d60d6db1/attachment.bin>

More information about the varnish-dev mailing list