Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions Modules/timemodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ _PyFloat_FromPyTime(PyTime_t t)


static PyObject *
time_time(PyObject *self, PyObject *unused)
time_time(PyObject *self, PyObject *Py_UNUSED(args))
{
PyTime_t t;
if (PyTime_Time(&t) < 0) {
Expand All @@ -122,7 +122,7 @@ Return the current time in seconds since the Epoch.\n\
Fractions of a second may be present if the system clock provides them.");

static PyObject *
time_time_ns(PyObject *self, PyObject *unused)
time_time_ns(PyObject *self, PyObject *Py_UNUSED(args))
{
PyTime_t t;
if (PyTime_Time(&t) < 0) {
Expand Down Expand Up @@ -1116,7 +1116,7 @@ of the timezone or altzone attributes on the time module.");
static int init_timezone(PyObject *module);

static PyObject *
time_tzset(PyObject *self, PyObject *unused)
time_tzset(PyObject *self, PyObject *Py_UNUSED(args))
{
PyObject* m;

Expand Down Expand Up @@ -1156,7 +1156,7 @@ should not be relied on.");


static PyObject *
time_monotonic(PyObject *self, PyObject *unused)
time_monotonic(PyObject *self, PyObject *Py_UNUSED(args))
{
PyTime_t t;
if (PyTime_Monotonic(&t) < 0) {
Expand All @@ -1171,7 +1171,7 @@ PyDoc_STRVAR(monotonic_doc,
Monotonic clock, cannot go backward.");

static PyObject *
time_monotonic_ns(PyObject *self, PyObject *unused)
time_monotonic_ns(PyObject *self, PyObject *Py_UNUSED(args))
{
PyTime_t t;
if (PyTime_Monotonic(&t) < 0) {
Expand All @@ -1187,7 +1187,7 @@ Monotonic clock, cannot go backward, as nanoseconds.");


static PyObject *
time_perf_counter(PyObject *self, PyObject *unused)
time_perf_counter(PyObject *self, PyObject *Py_UNUSED(args))
{
PyTime_t t;
if (PyTime_PerfCounter(&t) < 0) {
Expand All @@ -1203,7 +1203,7 @@ Performance counter for benchmarking.");


static PyObject *
time_perf_counter_ns(PyObject *self, PyObject *unused)
time_perf_counter_ns(PyObject *self, PyObject *Py_UNUSED(args))
{
PyTime_t t;
if (PyTime_PerfCounter(&t) < 0) {
Expand Down Expand Up @@ -1370,7 +1370,7 @@ py_process_time(time_module_state *state, PyTime_t *tp,
}

static PyObject *
time_process_time(PyObject *module, PyObject *unused)
time_process_time(PyObject *module, PyObject *Py_UNUSED(args))
{
time_module_state *state = get_time_state(module);
PyTime_t t;
Expand All @@ -1386,7 +1386,7 @@ PyDoc_STRVAR(process_time_doc,
Process time for profiling: sum of the kernel and user-space CPU time.");

static PyObject *
time_process_time_ns(PyObject *module, PyObject *unused)
time_process_time_ns(PyObject *module, PyObject *Py_UNUSED(args))
{
time_module_state *state = get_time_state(module);
PyTime_t t;
Expand Down Expand Up @@ -1538,7 +1538,7 @@ _PyTime_GetThreadTimeWithInfo(PyTime_t *tp, _Py_clock_info_t *info)
#endif

static PyObject *
time_thread_time(PyObject *self, PyObject *unused)
time_thread_time(PyObject *self, PyObject *Py_UNUSED(args))
{
PyTime_t t;
if (_PyTime_GetThreadTimeWithInfo(&t, NULL) < 0) {
Expand All @@ -1553,7 +1553,7 @@ PyDoc_STRVAR(thread_time_doc,
Thread time for profiling: sum of the kernel and user-space CPU time.");

static PyObject *
time_thread_time_ns(PyObject *self, PyObject *unused)
time_thread_time_ns(PyObject *self, PyObject *Py_UNUSED(args))
{
PyTime_t t;
if (_PyTime_GetThreadTimeWithInfo(&t, NULL) < 0) {
Expand Down
Loading