Replace calls to time(NULL) that occur on the order of once per read, one per write...
commitbf80e2df3fe48f81c69bb68887376b02ab247e5f
authorNick Mathewson <nickm@torproject.org>
Thu, 18 Dec 2008 17:19:04 +0000 (18 17:19 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 18 Dec 2008 17:19:04 +0000 (18 17:19 +0000)
treed95e835992abf9a2bad5954042ea38e5a6a9df3c
parentb91335117f9faf84001acc65859886e4ddc267a5
Replace calls to time(NULL) that occur on the order of once per read, one per write, or once per cell with calls to a function that looks at a cached value of time.  This is tricksy to benchmark, since it will only help on systems where time() is a syscall and syscalls are relatively slow.

svn:r17690
ChangeLog
doc/TODO.021
src/common/util.c
src/common/util.h
src/or/connection.c
src/or/connection_edge.c
src/or/main.c
src/or/relay.c
src/or/test.c