[ccan] [PATCH] timesince: Add module
Rusty Russell
rusty at rustcorp.com.au
Mon Jun 2 11:45:02 EST 2014
David Gibson <david at gibson.dropbear.id.au> writes:
> This patch adds a new "timesince" module. This builds on the 'time'
> module, making it easy to measure time intervals from a set starting
> point. It uses the monotonic clock when possible, so it won't be broken
> by concurrent changes to the system time.
Hi David,
I like the idea, but I find this line particularly confusing:
> + * start = timesince_start();
Because my brain parses that as "var = time since start".
Perhaps it's the name timesince? timediff? timemeasure?
But maybe I'm overthinking it...
Cheers,
Rusty.
More information about the ccan
mailing list