Use ns resolution on non-Windows/OS2#144
Conversation
|
I actually attempted this independently when preparing for #165, but when I did some research, it turns out that nanosecond resolution isn't the same as nanosecond accuracy. One nanosecond is only 4 clock cycles on a CPU that runs at 4GHz, and even simple Python lines can easily be hundreds to thousands of clock cycles. If this was a resolution of 100ns, that could be reasonable, but for now 1 microsecond makes the most sense, if only to keep it consistent between platforms. |
|
The point of this change is not to get ns resolution but to get 1 extra digit of significance. Plenty of python statements take less then 1 microsecond (around half). So, getting 0.2 or 0.9 instead of 0 or 1 can be useful. |
|
I think this is also the reason why |
|
I think we should look at incorporating this. |
|
I forgot to mention, I incorporated it into #165 around September 20th I believe. |
|
Resolved in a different branch. |
No description provided.