40 #include <sys/timeb.h> 
   43 # include <sys/time.h> 
   88     struct _timeb timebuffer;
 
   90     struct timeval a_time;
 
  106          _ftime64_s( &timebuffer );
 
  109          gettimeofday( &a_time, 
NULL );
 
  119         return Elapsed( now );
 
  129         return Elapsed_us( now );
 
  138         double seconds = double( other.timebuffer.time - timebuffer.time);
 
  139         double msec = double( other.timebuffer.millitm - timebuffer.millitm );
 
  141         return seconds + msec / 1000.0;
 
  148         long seconds = long( other.timebuffer.time - timebuffer.time);
 
  149         long msec    = long( other.timebuffer.millitm - timebuffer.millitm );
 
  151         return seconds * 1000000 + msec * 1000;
 
  158         double seconds = double( other.
a_time.tv_sec - a_time.tv_sec );
 
  159         double usec = double( other.
a_time.tv_usec - a_time.tv_usec );
 
  161         return seconds + usec / 1000000.0;
 
  168         long seconds = other.
a_time.tv_sec - a_time.tv_sec;
 
  169         long usec    = other.
a_time.tv_usec - a_time.tv_usec;
 
  171         return seconds * 1000000 + usec;