version 1.4.39b
[polyglot.git] / util.c
diff --git a/util.c b/util.c
index 873ed2f..3016e23 100644 (file)
--- a/util.c
+++ b/util.c
@@ -190,7 +190,7 @@ void my_fatal(const char format[], ...) {
     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
@@ -339,7 +339,10 @@ double now_real() {
 \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