Browse Source

Redux^3: Temporarily add windows verbosity to track down jenkins failures

Nick Mathewson 7 years ago
parent
commit
160d2c6aab
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/common/compat_time.c

+ 7 - 7
src/common/compat_time.c

@@ -471,20 +471,20 @@ int64_t
 monotime_diff_nsec(const monotime_t *start,
 monotime_diff_nsec(const monotime_t *start,
                    const monotime_t *end)
                    const monotime_t *end)
 {
 {
-#ifdef _WIN32
-  puts("m_d_n: 1");
-#endif
   if (BUG(monotime_initialized == 0)) {
   if (BUG(monotime_initialized == 0)) {
     monotime_init();
     monotime_init();
   }
   }
-#ifdef _WIN32
-  puts("m_d_n: 2");
-#endif
   const int64_t diff_ticks = end->pcount_ - start->pcount_;
   const int64_t diff_ticks = end->pcount_ - start->pcount_;
 #ifdef _WIN32
 #ifdef _WIN32
   puts("m_d_n: 3");
   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
 #endif
-  return (diff_ticks * ONE_BILLION) / ticks_per_second;
+  return res;
 }
 }
 
 
 int64_t
 int64_t