summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/mfluadir/otfcc/src/stopwatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/mfluadir/otfcc/src/stopwatch.h')
-rw-r--r--Build/source/texk/web2c/mfluadir/otfcc/src/stopwatch.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/mfluadir/otfcc/src/stopwatch.h b/Build/source/texk/web2c/mfluadir/otfcc/src/stopwatch.h
new file mode 100644
index 00000000000..2bdce33b422
--- /dev/null
+++ b/Build/source/texk/web2c/mfluadir/otfcc/src/stopwatch.h
@@ -0,0 +1,28 @@
+#ifndef CARYLL_SUPPORT_STOPWATCH_H
+#define CARYLL_SUPPORT_STOPWATCH_H
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <time.h>
+#include "dep/sds.h"
+
+#ifdef _WIN32
+// Windows
+#ifdef __MINGW32__
+#include <windows.h>
+#else
+#include <Windows.h>
+#endif
+#elif __MACH__
+// OSX
+#include <unistd.h>
+#include <mach/mach_time.h>
+#else
+#include <unistd.h>
+#endif
+void time_now(struct timespec *tv);
+sds push_stopwatch(struct timespec *sofar);
+#define logStepTime \
+ options->logger->logSDS(options->logger, log_vl_progress, log_type_progress, push_stopwatch(&begin));
+
+#endif