Changeset 554 for trunk/zoo-project/zoo-kernel/service.h
- Timestamp:
- Feb 5, 2015, 7:17:31 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service.h
r550 r554 46 46 long tv_usec; /* and microseconds */ 47 47 }; 48 void zGettimeofday(struct mstimeval* tp, void* tzp)48 static int zGettimeofday(struct ztimeval* tp, void* tzp) 49 49 { 50 if (tp == 0) { 51 return -1; 52 } 53 50 54 struct _timeb theTime; 51 55 _ftime(&theTime); 52 56 tp->tv_sec = theTime.time; 53 57 tp->tv_usec = theTime.millitm * 1000; 58 59 return 0; // The gettimeofday() function shall return 0 on success 54 60 } 55 61 #else
Note: See TracChangeset
for help on using the changeset viewer.