summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-07-26 08:56:55 -0400
committerNick Mathewson <nickm@torproject.org>2016-07-26 10:36:44 -0400
commit160d2c6aab6016b0e5774a3b909dd8c03bb2467a (patch)
tree5264826d6f81a802278d0f2473857bfcbcdc42d2
parent0cef69713c16f2ecf428c952cd909b484ed0212a (diff)
downloadtor-160d2c6aab6016b0e5774a3b909dd8c03bb2467a.tar.gz
tor-160d2c6aab6016b0e5774a3b909dd8c03bb2467a.zip
Redux^3: Temporarily add windows verbosity to track down jenkins failures
-rw-r--r--src/common/compat_time.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/common/compat_time.c b/src/common/compat_time.c
index 1ff5cc1771..bdbf2b5f04 100644
--- a/src/common/compat_time.c
+++ b/src/common/compat_time.c
@@ -471,20 +471,20 @@ 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");
+ printf(I64_FORMAT" diff_ticks\n", I64_PRINTF_ARG(diff_ticks));
+ printf(I64_FORMAT" ticks per second\n", I64_PRINTF_ARG(ticks_per_second));
+#endif
+ const int64_t result = (diff_ticks * ONE_BILLION) / ticks_per_second;
+#ifdef _WIN32
+ printf(I64_FORMAT" res\n", I64_PRINTF_ARG(result));
#endif
- return (diff_ticks * ONE_BILLION) / ticks_per_second;
+ return res;
}
int64_t