I was curious about using tick()
vs using os.time()
and after asking around a bit, I learned that tick()
is deprecated and sometimes can be off by a second or a few. I decided to print them both, and this is what I got.
The first is tick()
, second is os.time()
What shows is over 30,000 seconds of difference in their times yet they are both supposedly from January 1st of 1970, why is this?
That’s because os.time()
returns Unix time and tick()
returns the user’s local time.
2 Likes