00001 /* 00002 ** AUTHORS: 00003 ** Rama Alebouyeh (rama[at]cs.ucsb.edu) 00004 ** Matthew S Allen (msa[at]cs.ucsb.edu) 00005 */ 00006 00007 #ifndef DTIME_H 00008 #define DTIME_H 00009 00010 #include <sys/time.h> 00011 00012 #ifdef __cplusplus 00013 extern "C" { 00014 #endif 00015 00020 extern double dtime(); 00021 00026 extern void dalarm(double time); 00027 00032 extern void dsleep(double time); 00033 00038 extern struct timeval dtotv(double d); 00039 00044 extern double tvtod(struct timeval tv); 00045 00046 #ifdef __cplusplus 00047 } 00048 #endif 00049 00050 #endif /* DTIME_H */