cpython/Modules/_testinternalcapi/pytime.c

/* Test pycore_time.h */

#include "parts.h"

#include "pycore_time.h"          // _PyTime_FromSeconds()

#ifdef MS_WINDOWS
#  include <winsock2.h>           // struct timeval
#endif


static PyObject *
test_pytime_fromseconds(PyObject *self, PyObject *args)
{}

static int
check_time_rounding(int round)
{}

static PyObject *
test_pytime_fromsecondsobject(PyObject *self, PyObject *args)
{}

static PyObject *
test_PyTime_AsTimeval(PyObject *self, PyObject *args)
{}

static PyObject *
test_PyTime_AsTimeval_clamp(PyObject *self, PyObject *args)
{}

#ifdef HAVE_CLOCK_GETTIME
static PyObject *
test_PyTime_AsTimespec(PyObject *self, PyObject *args)
{}

static PyObject *
test_PyTime_AsTimespec_clamp(PyObject *self, PyObject *args)
{}
#endif

static PyObject *
test_PyTime_AsMilliseconds(PyObject *self, PyObject *args)
{}

static PyObject *
test_PyTime_AsMicroseconds(PyObject *self, PyObject *args)
{}

static PyObject *
test_pytime_object_to_time_t(PyObject *self, PyObject *args)
{}

static PyObject *
test_pytime_object_to_timeval(PyObject *self, PyObject *args)
{}

static PyObject *
test_pytime_object_to_timespec(PyObject *self, PyObject *args)
{}

static PyMethodDef TestMethods[] =;

int
_PyTestInternalCapi_Init_PyTime(PyObject *m)
{}