File mplib1/stopwatch.h


Preprocessor definitions

#define MPLIB1_STOPWATCH

#define STOPWATCH_ELPS_SIZE 40

#define CPUSTOPWATCH_ELPS_SIZE 100

#define STOPWATCH_BASE_CENTIS 0x00

#define STOPWATCH_BASE_MILLIS 0x01

#define STOPWATCH_BASE_MICROS 0x02

#define STOPWATCH_BASE_FMASK 0x03

#define STOPWATCH_BASE_SECS 0x00

#define STOPWATCH_BASE_DAYS 0x10

#define STOPWATCH_BASE_SMASK 0x30

#define STOPWATCH_SECS_CENTIS

#define STOPWATCH_SECS_MILLIS

#define STOPWATCH_SECS_MICROS

#define STOPWATCH_DAYS_CENTIS

#define STOPWATCH_DAYS_MILLIS

#define STOPWATCH_DAYS_MICROS

#define STOPWATCH_SIZE

#define CPU_STOPWATCH_SIZE

#define SECS_PER_DAY 86400


Type struct stopwatch

struct stopwatch
struct stopwatch  
   {  
      struct timeval start_time;  
      struct timeval cumulative_time;  
      char elps_str[40];  
   }  

Type struct cpu_stopwatch

struct cpu_stopwatch
struct cpu_stopwatch  
   {  
      struct stopwatch u_timing;  
      struct stopwatch s_timing;  
      char elps_str[100];  
   }