#include #include #ifdef _WIN32 #include #endif #include "osiTime.h" #include "osiThread.h" #include "epicsAssert.h" #ifndef CLOCK_REALTIME // // this is part of the POSIX RT standard but some OS // still do not define this in time.h // struct timespec { time_t tv_sec; /* seconds since some epoch */ long tv_nsec; /* nanoseconds within the second */ }; #endif int main () { unsigned i; osiTime begin = osiTime::getCurrent(); const unsigned iter = 100000u; TS_STAMP stamp; struct timespec ts; struct tm tmAnsi; tm_nano_sec ansiDate; char stampText[128]; double diff; for (i=0; i=end); assert (end>begin); assert (end>=begin); assert (begin