]> sourceware.org Git - newlib-cygwin.git/commitdiff
* times.cc (GetSystemTimePreciseAsFileTime): Add comment to declaration.
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 17 Jun 2013 08:33:41 +0000 (08:33 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 17 Jun 2013 08:33:41 +0000 (08:33 +0000)
(__to_clock_t): Remove a debug_printf.
(times): Align syscall_printf to debug output of other system calls.

winsup/cygwin/ChangeLog
winsup/cygwin/times.cc

index 386d54c423e9b6fecfc136d9287878059dd6ee63..1b2562bfac8a1b45c72ffec96bea657aa6d1f4f5 100644 (file)
@@ -1,3 +1,9 @@
+2013-06-17  Corinna Vinschen  <corinna@vinschen.de>
+
+       * times.cc (GetSystemTimePreciseAsFileTime): Add comment to declaration.
+       (__to_clock_t): Remove a debug_printf.
+       (times): Align syscall_printf to debug output of other system calls.
+
 2013-06-14  Corinna Vinschen  <corinna@vinschen.de>
 
        * autoload.cc (GetSystemTimePreciseAsFileTime): Define.
index ac0f4e1557e94d9ba8a05f99e95c4a0ad3c5f50d..c9df29116e25f307aa704fd59d54dfb7d18871e0 100644 (file)
@@ -31,6 +31,7 @@ hires_ms NO_COPY gtod;
 
 hires_ns NO_COPY ntod;
 
+/* Temporary declare here until 32 bit w32api follows suit. */
 extern "C" { void WINAPI GetSystemTimePreciseAsFileTime (LPFILETIME); }
 
 static inline void __attribute__ ((always_inline))
@@ -51,7 +52,6 @@ __to_clock_t (PLARGE_INTEGER src, int flag)
     total -= FACTOR;
 
   total /= NSPERSEC / CLOCKS_PER_SEC;
-  debug_printf ("total %016X", total);
   return total;
 }
 
@@ -81,9 +81,6 @@ times (struct tms *buf)
   /* ticks is in in 100ns, convert to clock ticks. */
   clock_t tc = (clock_t) (ticks.QuadPart * CLOCKS_PER_SEC / NSPERSEC);
 
-  syscall_printf ("ticks %D, CLOCKS_PER_SEC %d", ticks, CLOCKS_PER_SEC);
-  syscall_printf ("UserTime %D, KernelTime %D, CreationTime %D, ExitTime %D",
-                 kut.UserTime, kut.KernelTime, kut.CreateTime, kut.ExitTime);
   buf->tms_stime = __to_clock_t (&kut.KernelTime, 0);
   buf->tms_utime = __to_clock_t (&kut.UserTime, 0);
   timeval_to_filetime (&myself->rusage_children.ru_stime, &kut.KernelTime);
@@ -91,6 +88,7 @@ times (struct tms *buf)
   timeval_to_filetime (&myself->rusage_children.ru_utime, &kut.UserTime);
   buf->tms_cutime = __to_clock_t (&kut.UserTime, 1);
 
+  syscall_printf ("%D = times(%p)", tc, buf);
   return tc;
 }
 
This page took 0.035898 seconds and 5 git commands to generate.