#include <stdlib.h>\r
#include <string.h>\r
#include <time.h>\r
+#ifndef _MSC_VER\r
#include <sys/time.h>\r
+#endif\r
\r
#include "main.h"\r
#include "util.h"\r
CONSTRUCT_ARG_STRING(format,string);\r
\r
fprintf(stderr,"%s",string);\r
- if (LogFile != NULL) fprintf(LogFile,"%s",string);\r
+ my_log("POLYGLOT %s",string);\r
\r
if (Error) { // recursive error\r
my_log("POLYGLOT *** RECURSIVE ERROR ***\n");\r
\r
return tv->tv_sec + tv->tv_usec * 1E-6;\r
#else\r
- return (double) GetTickCount() / 1000.0; // we can do better here:-)\r
+ struct _timeb timeptr;\r
+ _ftime(&timeptr);\r
+ return(timeptr.time+((double)timeptr.millitm)/1000.0);\r
+// return (double) GetTickCount() / 1000.0; // we can do better here:-)\r
#endif\r
}\r
\r