PTMCMCSampler icon indicating copy to clipboard operation
PTMCMCSampler copied to clipboard

time.sleep takes a long time (~15ms) on Win10 python 3

Open vhaasteren opened this issue 6 years ago • 0 comments

It seems that the time.sleep(0.000001) hack has some unwanted consequences on Windows10 in Python 3. A simple

%timeit time.sleep(0.000001)

reveals that this takes ~15ms on my workstation, which is going to take up the bulk of execution time for fast distributions. Decreasing the fraction of time does not help. Since this is related to the MPI issue, I can imagine that for under Windows the trick is not even necessary.

vhaasteren avatar Nov 05 '18 21:11 vhaasteren