diff src/data.cc @ 10073:dcde57cb5778

use times module from gnulib
author John W. Eaton <jwe@octave.org>
date Thu, 07 Jan 2010 17:26:18 -0500
parents 184060864627
children 4b270d1540f7
line wrap: on
line diff
--- a/src/data.cc	Thu Jan 07 16:43:48 2010 -0500
+++ b/src/data.cc	Thu Jan 07 17:26:18 2010 -0500
@@ -5700,18 +5700,6 @@
   sys = static_cast<double> (seconds) + static_cast<double>(fraction) /
     static_cast<double>(HZ);
 
-#elif defined (__WIN32__)
-
-  HANDLE hProcess = GetCurrentProcess ();
-  FILETIME ftCreation, ftExit, ftUser, ftKernel;
-  GetProcessTimes (hProcess, &ftCreation, &ftExit, &ftKernel, &ftUser);
-
-  int64_t itmp = *(reinterpret_cast<int64_t *> (&ftUser));
-  usr = static_cast<double> (itmp) * 1e-7;
-
-  itmp = *(reinterpret_cast<int64_t *> (&ftKernel));
-  sys = static_cast<double> (itmp) * 1e-7;
-
 #endif
 
   retval (2) = sys;