Comparing times with sub-second accuracy September 8, 2023 by Tarik time.time() * 1000 will give you millisecond accuracy if possible.