Re: time in lib

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 04 May 2001 00:28:49 +0200

Robert Collins wrote:

> Perhaps add squid_curtime as an exprted variable from misclib, and move
> the time routines into a lib. time access is a common thing after all.

If any time symbol it to made global I think current_dtime is the first
candidate. It both has more precision and a better name. If
squid_curtime is to be moved to lib then it should be renamed to
something saner..

But on the other hand.. measurements have shown that gettimeofday() is a
very quick call, at least on Linux.. think it was somewhere around 60 ns
on my 450MHz Pentium III laptop... (well, this was ofcourse from a loop
all cached in L1 cache but...)

--
Henrik
Received on Thu May 03 2001 - 16:31:30 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:58 MST