Debian Codegraph @

texk/web2c/mfluadir/otfcc/src/stopwatch.h

raw
1 #ifndef CARYLL_SUPPORT_STOPWATCH_H
2 #define CARYLL_SUPPORT_STOPWATCH_H
3
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <time.h>
7 #include "dep/sds.h"
8
9 #ifdef _WIN32
10 // Windows
11 #ifdef __MINGW32__
12 #include <windows.h>
13 #else
14 #include <Windows.h>
15 #endif
16 #elif __MACH__
17 // OSX
18 #include <unistd.h>
19 #include <mach/mach_time.h>
20 #else
21 #include <unistd.h>
22 #endif
23 void time_now(struct timespec *tv);
24 sds push_stopwatch(struct timespec *sofar);
25 #define logStepTime \
26 options->logger->logSDS(options->logger, log_vl_progress, log_type_progress, push_stopwatch(&begin));
27
28 #endif