[tor-commits] [tor/master] Redux^2: Temporarily add windows verbosity to track down jenkins failures

nickm at torproject.org nickm at torproject.org
Tue Jul 26 14:04:53 UTC 2016


commit 0cef69713c16f2ecf428c952cd909b484ed0212a
Author: Nick Mathewson <nickm at torproject.org>
Date:   Tue Jul 26 08:56:55 2016 -0400

    Redux^2: Temporarily add windows verbosity to track down jenkins failures
---
 src/common/compat_time.c | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/src/common/compat_time.c b/src/common/compat_time.c
index da30a41..1ff5cc1 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);
 }
 



More information about the tor-commits mailing list