codekingpro/portable-devtools
115k
1// PyTime_t C API: see Doc/c-api/time.rst for the documentation.2 3#ifndef Py_LIMITED_API4#ifndef Py_PYTIME_H5#define Py_PYTIME_H6#ifdef __cplusplus7extern "C" {8#endif9 10typedef int64_t PyTime_t;11#define PyTime_MIN INT64_MIN12#define PyTime_MAX INT64_MAX13 14PyAPI_FUNC(double) PyTime_AsSecondsDouble(PyTime_t t);15PyAPI_FUNC(int) PyTime_Monotonic(PyTime_t *result);16PyAPI_FUNC(int) PyTime_PerfCounter(PyTime_t *result);17PyAPI_FUNC(int) PyTime_Time(PyTime_t *result);18 19PyAPI_FUNC(int) PyTime_MonotonicRaw(PyTime_t *result);20PyAPI_FUNC(int) PyTime_PerfCounterRaw(PyTime_t *result);21PyAPI_FUNC(int) PyTime_TimeRaw(PyTime_t *result);22 23#ifdef __cplusplus24}25#endif26#endif /* Py_PYTIME_H */27#endif /* Py_LIMITED_API */28 