summaryrefslogtreecommitdiff
path: root/src/gc/unix/globals.h
blob: bc3dc499183344f196b8c4826a8248ba01cb126d (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
29
30
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#ifndef __GLOBALS_H__
#define __GLOBALS_H__

#if HAVE_MACH_ABSOLUTE_TIME
#include <mach/mach_time.h>
#endif // HAVE_MACH_ABSOLUTE_TIME

const int tccSecondsToMilliSeconds = 1000;

// The number of microseconds in a second.
const int tccSecondsToMicroSeconds = 1000000;

// The number of nanoseconds in a second.
const int tccSecondsToNanoSeconds = 1000000000;

// The number of microseconds in a millisecond.
const int tccMilliSecondsToMicroSeconds = 1000;

// The number of nanoseconds in a millisecond.
const int tccMilliSecondsToNanoSeconds = 1000000;

#if HAVE_MACH_ABSOLUTE_TIME
extern mach_timebase_info_data_t g_TimebaseInfo;
#endif // HAVE_MACH_ABSOLUTE_TIME

#endif // __GLOBALS_H__