1 | // Licensed to the .NET Foundation under one or more agreements. |
2 | // The .NET Foundation licenses this file to you under the MIT license. |
3 | // See the LICENSE file in the project root for more information. |
4 | |
5 | #ifndef __GLOBALS_H__ |
6 | #define __GLOBALS_H__ |
7 | |
8 | #if HAVE_MACH_ABSOLUTE_TIME |
9 | #include <mach/mach_time.h> |
10 | #endif // HAVE_MACH_ABSOLUTE_TIME |
11 | |
12 | const int tccSecondsToMilliSeconds = 1000; |
13 | |
14 | // The number of microseconds in a second. |
15 | const int tccSecondsToMicroSeconds = 1000000; |
16 | |
17 | // The number of nanoseconds in a second. |
18 | const int tccSecondsToNanoSeconds = 1000000000; |
19 | |
20 | // The number of microseconds in a millisecond. |
21 | const int tccMilliSecondsToMicroSeconds = 1000; |
22 | |
23 | // The number of nanoseconds in a millisecond. |
24 | const int tccMilliSecondsToNanoSeconds = 1000000; |
25 | |
26 | #if HAVE_MACH_ABSOLUTE_TIME |
27 | extern mach_timebase_info_data_t g_TimebaseInfo; |
28 | #endif // HAVE_MACH_ABSOLUTE_TIME |
29 | |
30 | #endif // __GLOBALS_H__ |
31 | |