| 1 |
// PyTime_t C API: see Doc/c-api/time.rst for the documentation. |
| 2 |
|
| 3 |
#ifndef Py_LIMITED_API |
| 4 |
#ifndef Py_PYTIME_H |
| 5 |
#define Py_PYTIME_H |
| 6 |
#ifdef __cplusplus |
| 7 |
extern "C" { |
| 8 |
#endif |
| 9 |
|
| 10 |
typedef int64_t PyTime_t; |
| 11 |
#define PyTime_MIN INT64_MIN |
| 12 |
#define PyTime_MAX INT64_MAX |
| 13 |
|
| 14 |
PyAPI_FUNC(double) PyTime_AsSecondsDouble(PyTime_t t); |
| 15 |
PyAPI_FUNC(int) PyTime_Monotonic(PyTime_t *result); |
| 16 |
PyAPI_FUNC(int) PyTime_PerfCounter(PyTime_t *result); |
| 17 |
PyAPI_FUNC(int) PyTime_Time(PyTime_t *result); |
| 18 |
|
| 19 |
PyAPI_FUNC(int) PyTime_MonotonicRaw(PyTime_t *result); |
| 20 |
PyAPI_FUNC(int) PyTime_PerfCounterRaw(PyTime_t *result); |
| 21 |
PyAPI_FUNC(int) PyTime_TimeRaw(PyTime_t *result); |
| 22 |
|
| 23 |
#ifdef __cplusplus |
| 24 |
} |
| 25 |
#endif |
| 26 |
#endif /* Py_PYTIME_H */ |
| 27 |
#endif /* Py_LIMITED_API */ |