From befbbad0513c5f1075c573570a678d148b645a82 Mon Sep 17 00:00:00 2001 From: Julien Gilli Date: Tue, 22 Jul 2014 18:03:10 -0700 Subject: timers: backport f8193ab Original commit message: timers: use uv_now instead of Date.now This saves a few calls to gettimeofday which can be expensive, and potentially subject to clock drift. Instead use the loop time which uses hrtime internally. In addition to the backport, this commit: - keeps _idleStart timers' property which is still set to Date.now() to avoid breaking existing code that uses it, even if its use is discouraged. - adds automated tests. These tests use a specific branch of libfaketime that hasn't been submitted upstream yet. libfaketime is git cloned if needed when running automated tests. Signed-off-by: Timothy J Fontaine --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index 177514422a..766766e152 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,6 @@ deps/openssl/openssl.xml /SHASUMS*.txt* /tools/wrk/wrk + +# test artifacts +tools/faketime -- cgit v1.2.3