colesbury / sudopy-python3

Peter Norvig's Sudoku solver (in Python 3)
1 stars 2 forks source link

Why time.time instead of time.perf_counter #3

Open FeldrinH opened 1 month ago

FeldrinH commented 1 month ago

I've generally seen time.perf_counter() recommended as the preferred method for measuring time during benchmarking (because time.time() can have pretty bad accuracy on some systems), but this repo uses time.time(). Is there a particular reason for that?

colesbury commented 1 month ago

Just laziness and I think time.time() is just as precise on Linux and macOS