howmanysmall / Janitor

Janitor library.
https://howmanysmall.github.io/Janitor/
MIT License
107 stars 17 forks source link

Do not use os.clock #2

Closed Pyseph closed 3 years ago

Pyseph commented 3 years ago

os.clock should only be used for it's intended purpose, which is benchmarking as stated on the wiki. It does not reflect upon actual time but rather CPU time - time() is a better alternative for this.

howmanysmall commented 3 years ago

Good suggestion, although that would break plugin compatibility.

howmanysmall commented 3 years ago

Actually, I could leave a comment suggesting to use time for non-plugin purposes.