消息 [247024]
Python 3.5 has a new C function _PyTime_GetSystemClock() which uses the new _PyTime_t type. It now has a resolution of 1 nanosecond.
Sorry, I don't have Windows 8 at home, so I cannot work on this issue.
I guess that we should check at runtime if GetSystemTimePreciseAsFileTime() is available, as we did for GetTickCount64() in the past:
hKernel32 = GetModuleHandleW(L"KERNEL32");
*(FARPROC*)&Py_GetTickCount64 = GetProcAddress(hKernel32,
"GetTickCount64");
Is there any Windows developer interested to write a short patch to implement it? |
|
| 日期 |
用户 |
动作 |
参数 |
| 2015-07-21 10:50:56 | vstinner | 修改 | recipients:
+ vstinner, lemburg, tim.peters, belopolsky, pitrou, tim.golden, akira, zach.ware, steve.dower |
| 2015-07-21 10:50:56 | vstinner | 修改 | messageid: <1437475856.88.0.682110111748.issue19007@psf.upfronthosting.co.za> |
| 2015-07-21 10:50:56 | vstinner | 链接 | issue19007 messages |
| 2015-07-21 10:50:56 | vstinner | 创建 | |
|