Skip to content

Commit 3cd4078

Browse files
committed
Fix resolution of process_time and thread_time
1 parent 0045100 commit 3cd4078

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/timemodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ py_process_time(time_module_state *state, PyTime_t *tp,
13071307

13081308
if (info) {
13091309
info->implementation = "GetProcessTimes()";
1310-
info->resolution = 1e-7;
1310+
info->resolution = 15.625e-3;
13111311
info->monotonic = 1;
13121312
info->adjustable = 0;
13131313
}
@@ -1468,7 +1468,7 @@ _PyTime_GetThreadTimeWithInfo(PyTime_t *tp, _Py_clock_info_t *info)
14681468

14691469
if (info) {
14701470
info->implementation = "GetThreadTimes()";
1471-
info->resolution = 1e-7;
1471+
info->resolution = 15.625e-3;
14721472
info->monotonic = 1;
14731473
info->adjustable = 0;
14741474
}

0 commit comments

Comments
 (0)