Lines Matching defs:info
141 _PyTime_GetClockWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
157 if (info) {
158 info->implementation = "clock()";
159 info->resolution = 1.0 / (double)CLOCKS_PER_SEC;
160 info->monotonic = 1;
161 info->adjustable = 0;
1210 _PyTime_GetProcessTimeWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
1227 if (info) {
1228 info->implementation = "GetProcessTimes()";
1229 info->resolution = 1e-7;
1230 info->monotonic = 1;
1231 info->adjustable = 0;
1264 if (info) {
1266 info->implementation = function;
1267 info->monotonic = 1;
1268 info->adjustable = 0;
1273 info->resolution = res.tv_sec + res.tv_nsec * 1e-9;
1291 if (info) {
1292 info->implementation = "getrusage(RUSAGE_SELF)";
1293 info->monotonic = 1;
1294 info->adjustable = 0;
1295 info->resolution = 1e-6;
1347 if (info) {
1348 info->implementation = "times()";
1349 info->monotonic = 1;
1350 info->adjustable = 0;
1351 info->resolution = 1.0 / (double)ticks_per_second;
1365 return _PyTime_GetClockWithInfo(tp, info);
1404 _PyTime_GetThreadTimeWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
1420 if (info) {
1421 info->implementation = "GetThreadTimes()";
1422 info->resolution = 1e-7;
1423 info->monotonic = 1;
1424 info->adjustable = 0;
1444 _PyTime_GetThreadTimeWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
1455 if (info) {
1456 info->implementation = "thread_cputime()";
1457 info->monotonic = 1;
1458 info->adjustable = 0;
1459 info->resolution = 1e-9;
1468 _PyTime_GetThreadTimeWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
1472 if (info) {
1473 info->implementation = "gethrvtime()";
1474 info->resolution = 1e-9;
1475 info->monotonic = 1;
1476 info->adjustable = 0;
1489 _PyTime_GetThreadTimeWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
1497 _PyTime_GetThreadTimeWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
1507 if (info) {
1509 info->implementation = function;
1510 info->monotonic = 1;
1511 info->adjustable = 0;
1516 info->resolution = res.tv_sec + res.tv_nsec * 1e-9;
1578 _Py_clock_info_t info;
1587 info.implementation = NULL;
1588 info.monotonic = -1;
1589 info.adjustable = -1;
1590 info.resolution = -1.0;
1592 info.implementation = "";
1593 info.monotonic = 0;
1594 info.adjustable = 0;
1595 info.resolution = 1.0;
1599 if (_PyTime_GetSystemClockWithInfo(&t, &info) < 0) {
1604 if (_PyTime_GetMonotonicClockWithInfo(&t, &info) < 0) {
1609 if (_PyTime_GetPerfCounterWithInfo(&t, &info) < 0) {
1614 if (_PyTime_GetProcessTimeWithInfo(&t, &info) < 0) {
1624 if (_PyTime_GetThreadTimeWithInfo(&t, &info) < 0) {
1645 assert(info.implementation != NULL);
1646 obj = PyUnicode_FromString(info.implementation);
1655 assert(info.monotonic != -1);
1656 obj = PyBool_FromLong(info.monotonic);
1665 assert(info.adjustable != -1);
1666 obj = PyBool_FromLong(info.adjustable);
1675 assert(info.resolution > 0.0);
1676 assert(info.resolution <= 1.0);
1677 obj = PyFloat_FromDouble(info.resolution);