Changeset 514 for trunk/zoo-project/zoo-kernel/service.h
- Timestamp:
- Oct 27, 2014, 4:46:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service.h
r508 r514 41 41 #define zWrite _write 42 42 #define zSleep Sleep 43 #include <sys/timeb.h> 44 struct ztimeval { 45 long tv_sec; /* seconds */ 46 long tv_usec; /* and microseconds */ 47 }; 48 void zGettimeofday(struct mstimeval* tp, void* tzp) 49 { 50 struct _timeb theTime; 51 _ftime(&theTime); 52 tp->tv_sec = theTime.time; 53 tp->tv_usec = theTime.millitm * 1000; 54 } 43 55 #else 44 56 #define zStrdup strdup … … 47 59 #define zWrite write 48 60 #define zSleep sleep 61 #define zGettimeofday gettimeofday 62 #define ztimeval timeval 49 63 #endif 50 64
Note: See TracChangeset
for help on using the changeset viewer.