summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/mfluadir/otfcc/src/stopwatch.h
blob: 2bdce33b4222d911a0f7a0bc374c2beebaad735e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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