Lines Matching refs:info
863 py_get_system_clock(_PyTime_t *tp, _Py_clock_info_t *info, int raise_exc)
865 assert(info == NULL || raise_exc);
879 if (info) {
883 info->implementation = "GetSystemTimeAsFileTime()";
884 info->monotonic = 0;
891 info->resolution = timeIncrement * 1e-7;
892 info->adjustable = 1;
922 if (info) {
924 info->implementation = "clock_gettime(CLOCK_REALTIME)";
925 info->monotonic = 0;
926 info->adjustable = 1;
928 info->resolution = (double)res.tv_sec + (double)res.tv_nsec * 1e-9;
931 info->resolution = 1e-9;
956 if (info) {
957 info->implementation = "gettimeofday()";
958 info->resolution = 1e-6;
959 info->monotonic = 0;
960 info->adjustable = 1;
987 _PyTime_GetSystemClockWithInfo(_PyTime_t *t, _Py_clock_info_t *info)
989 return py_get_system_clock(t, info, 1);
1046 py_get_monotonic_clock(_PyTime_t *tp, _Py_clock_info_t *info, int raise_exc)
1048 assert(info == NULL || raise_exc);
1072 if (info) {
1075 info->implementation = "GetTickCount64()";
1076 info->monotonic = 1;
1083 info->resolution = timeIncrement * 1e-7;
1084 info->adjustable = 0;
1096 if (info) {
1097 info->implementation = "mach_absolute_time()";
1098 info->resolution = (double)timebase_numer / (double)timebase_denom * 1e-9;
1099 info->monotonic = 1;
1100 info->adjustable = 0;
1124 if (info) {
1125 info->implementation = "gethrtime()";
1126 info->resolution = 1e-9;
1127 info->monotonic = 1;
1128 info->adjustable = 0;
1154 if (info) {
1155 info->monotonic = 1;
1156 info->implementation = implementation;
1157 info->adjustable = 0;
1163 info->resolution = res.tv_sec + res.tv_nsec * 1e-9;
1184 _PyTime_GetMonotonicClockWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
1186 return py_get_monotonic_clock(tp, info, 1);
1228 py_get_win_perf_counter(_PyTime_t *tp, _Py_clock_info_t *info, int raise_exc)
1230 assert(info == NULL || raise_exc);
1239 if (info) {
1240 info->implementation = "QueryPerformanceCounter()";
1241 info->resolution = 1.0 / (double)frequency;
1242 info->monotonic = 1;
1243 info->adjustable = 0;
1265 _PyTime_GetPerfCounterWithInfo(_PyTime_t *t, _Py_clock_info_t *info)
1268 return py_get_win_perf_counter(t, info, 1);
1270 return _PyTime_GetMonotonicClockWithInfo(t, info);