scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

clock.h (532B)


      1 #ifndef CLOCK_H
      2 #define CLOCK_H
      3 
      4 #include <time.h>
      5 
      6 #define RUSAGE_SELF	0
      7 
      8 typedef long int clock_t;
      9 
     10 struct timeval {
     11 	long int tv_sec;
     12 	long int tv_usec;
     13 };
     14 
     15 struct rusage {
     16 	struct timeval ru_utime;
     17 	struct timeval ru_stime;
     18 	long int ru_maxrss;
     19 	long int ru_ixrss;
     20 	long int ru_idrss;
     21 	long int ru_isrss;
     22 	long int ru_minflt;
     23 	long int ru_majflt;
     24 	long int ru_nswap;
     25 	long int ru_inblock;
     26 	long int ru_oublock;
     27 	long int ru_msgsnd;
     28 	long int ru_msgrcv;
     29 	long int ru_nsignals;
     30 	long int ru_nvcsw;
     31 	long int ru_nivcsw;
     32 };
     33 
     34 #endif