if (std_p) *std_p = std;
}
-unsigned long (*_orc_profile_stamp)(void);
+
+static unsigned long
+oil_profile_stamp_default (void)
+{
+#if defined(HAVE_CLOCK_GETTIME) && defined(HAVE_MONOTONIC_CLOCK)
+ struct timespec ts;
+ clock_gettime (CLOCK_MONOTONIC, &ts);
+ return 1000000000*ts.tv_sec + ts.tv_nsec;
+#elif defined(HAVE_GETTIMEOFDAY)
+ struct timeval tv;
+ gettimeofday(&tv,NULL);
+ return 1000000*(unsigned long)tv.tv_sec + (unsigned long)tv.tv_usec;
+#else
+ return 0;
+#endif
+}
+
+static unsigned long (*_orc_profile_stamp)(void) = oil_profile_stamp_default;
/**
* orc_profile_stamp:
return _orc_profile_stamp();
}
+void
+_orc_profile_init (void)
+{
+
+}
+
#include <string.h>
#include <math.h>
+void _orc_profile_init(void);
OrcRandomContext rand_context;
setvbuf (stdout, NULL, _IONBF, 0);
orc_random_init (&rand_context, 0x12345678);
+ _orc_profile_init ();
}