used new new_type_frame() to generate frame types
[libfirm] / ir / ana2 / timing.c
index 0f6dc26..f8eabed 100644 (file)
 /*
   Timing stuff.  Not really part of ana2, but where else should it go.
 */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include <stdlib.h>
 #include <string.h>
-#include <sys/time.h>
 
 # include "timing.h"
 
+struct timing_env
+{
+  struct timeval *start;
+  struct timeval *end;
+};
+
+#ifdef _WIN32
+/* no support yet */
+timing_t *start_timing (void) {}
+int end_timing (timing_t *t) {}
+
+#else
+#include <sys/time.h>
+
 \f
 /*
 Helpers
@@ -51,7 +67,7 @@ timeval_subtract (struct timeval *x, struct timeval *y)
   Public Interface
 */
 timing_t *
-start_timing ()
+start_timing (void)
 {
   timing_t *t = (timing_t*) malloc (sizeof (timing_t));
 
@@ -83,10 +99,17 @@ end_timing (timing_t *t)
 
   return (time);
 }
+#endif /* _WIN32 */
 
 \f
 /*
   $Log$
+  Revision 1.3  2005/01/05 14:25:38  beck
+  added Win32 "support"
+
+  Revision 1.2  2004/12/21 15:52:23  beck
+  moved struct timing_env to .c file, added config.h
+
   Revision 1.1  2004/10/29 18:55:52  liekweg
   (mostly) generic timimg