Message240398
> My patch for the issue #22043 adds nanosecond precision to get the system clock.
In fact, nanosecond resolution was added by the issue #22117. In Python 3.5, datetime.datetime.now() calls _PyTime_GetSystemClock() which has now a resolution of 1 nanosecond.
The C type has a resolution of 1 nanosecond, the effictive resolution depends on the platform. For example, Windows provides GetSystemTimeAsFileTime() which has a resolution of 100 ns (and the effective accuracy is closer to 15 ms: see issue #13845). |
|
Date |
User |
Action |
Args |
2015-04-09 22:07:24 | vstinner | set | recipients:
+ vstinner, lemburg, tim.peters, belopolsky, pitrou, pythonhacker, Arfrever, r.david.murray, andrewclegg, ethan.furman, Ramchandra Apte, serhiy.storchaka, goshawk, Niklas.Claesson, mdcb808@gmail.com, scoobydoo |
2015-04-09 22:07:24 | vstinner | set | messageid: <1428617244.29.0.263581262725.issue15443@psf.upfronthosting.co.za> |
2015-04-09 22:07:24 | vstinner | link | issue15443 messages |
2015-04-09 22:07:24 | vstinner | create | |
|