#if defined(HAVE_CLOCK_GETTIME)
PyDoc_STRVAR(time_clock_gettime__doc__,
"clock_gettime($module, clk_id, /)\n"
"--\n"
"\n"
"Return the time of the specified clock clk_id as a float.");
#define TIME_CLOCK_GETTIME_METHODDEF …
static PyObject *
time_clock_gettime_impl(PyObject *module, clockid_t clk_id);
static PyObject *
time_clock_gettime(PyObject *module, PyObject *arg)
{ … }
#endif
#if defined(HAVE_CLOCK_GETTIME)
PyDoc_STRVAR(time_clock_gettime_ns__doc__,
"clock_gettime_ns($module, clk_id, /)\n"
"--\n"
"\n"
"Return the time of the specified clock clk_id as nanoseconds (int).");
#define TIME_CLOCK_GETTIME_NS_METHODDEF …
static PyObject *
time_clock_gettime_ns_impl(PyObject *module, clockid_t clk_id);
static PyObject *
time_clock_gettime_ns(PyObject *module, PyObject *arg)
{ … }
#endif
#ifndef TIME_CLOCK_GETTIME_METHODDEF
#define TIME_CLOCK_GETTIME_METHODDEF
#endif
#ifndef TIME_CLOCK_GETTIME_NS_METHODDEF
#define TIME_CLOCK_GETTIME_NS_METHODDEF
#endif