equal
  deleted
  inserted
  replaced
  
    
    
    21   | 
    21   | 
    22 ///\ingroup timecount  | 
    22 ///\ingroup timecount  | 
    23 ///\file  | 
    23 ///\file  | 
    24 ///\brief Tools for measuring cpu usage  | 
    24 ///\brief Tools for measuring cpu usage  | 
    25   | 
    25   | 
    26 #ifdef WIN32  | 
    26 #include <lemon/config.h>  | 
         | 
    27   | 
         | 
    28 #ifdef LEMON_WIN32  | 
    27 #include <lemon/bits/windows.h>  | 
    29 #include <lemon/bits/windows.h>  | 
    28 #else  | 
    30 #else  | 
    29 #include <unistd.h>  | 
    31 #include <unistd.h>  | 
    30 #include <sys/times.h>  | 
    32 #include <sys/times.h>  | 
    31 #include <sys/time.h>  | 
    33 #include <sys/time.h>  | 
   100   | 
   102   | 
   101   | 
   103   | 
   102     ///Read the current time values of the process  | 
   104     ///Read the current time values of the process  | 
   103     void stamp()  | 
   105     void stamp()  | 
   104     { | 
   106     { | 
   105 #ifndef WIN32  | 
   107 #ifndef LEMON_WIN32  | 
   106       timeval tv;  | 
   108       timeval tv;  | 
   107       gettimeofday(&tv, 0);  | 
   109       gettimeofday(&tv, 0);  | 
   108       rtime=tv.tv_sec+double(tv.tv_usec)/1e6;  | 
   110       rtime=tv.tv_sec+double(tv.tv_usec)/1e6;  | 
   109   | 
   111   | 
   110       tms ts;  | 
   112       tms ts;  |