diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-07-26 08:56:55 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-07-26 10:04:40 -0400 |
commit | 0cef69713c16f2ecf428c952cd909b484ed0212a (patch) | |
tree | 66362b75ba1c11c8f3e502f8417b8daeebcf1339 | |
parent | fb7f90c181dc44ae9f23cb4d16cac25609463d9f (diff) | |
download | tor-0cef69713c16f2ecf428c952cd909b484ed0212a.tar.gz tor-0cef69713c16f2ecf428c952cd909b484ed0212a.zip |
Redux^2: Temporarily add windows verbosity to track down jenkins failures
-rw-r--r-- | src/common/compat_time.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/common/compat_time.c b/src/common/compat_time.c index da30a41a5c..1ff5cc1771 100644 --- a/src/common/compat_time.c +++ b/src/common/compat_time.c @@ -312,7 +312,7 @@ int64_t monotime_diff_nsec(const monotime_t *start, const monotime_t *end) { - if (BUG(mach_time_info.denom == 0)) { +n if (BUG(mach_time_info.denom == 0)) { monotime_init(); } const int64_t diff_ticks = end->abstime_ - start->abstime_; @@ -471,10 +471,19 @@ int64_t monotime_diff_nsec(const monotime_t *start, const monotime_t *end) { +#ifdef _WIN32 + puts("m_d_n: 1"); +#endif if (BUG(monotime_initialized == 0)) { monotime_init(); } +#ifdef _WIN32 + puts("m_d_n: 2"); +#endif const int64_t diff_ticks = end->pcount_ - start->pcount_; +#ifdef _WIN32 + puts("m_d_n: 3"); +#endif return (diff_ticks * ONE_BILLION) / ticks_per_second; } @@ -587,11 +596,20 @@ uint64_t monotime_absolute_nsec(void) { monotime_t now; +#ifdef _WIN32 + puts("m_a_n: 1"); +#endif if (BUG(monotime_initialized == 0)) { monotime_init(); } +#ifdef _WIN32 + puts("m_a_n: 2"); +#endif monotime_get(&now); +#ifdef _WIN32 + puts("m_a_n: 3"); +#endif return monotime_diff_nsec(&initialized_at, &now); } |