Skip to content

Commit

Permalink
test: update time format
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed Apr 29, 2024
1 parent 74e086e commit 8a61d16
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,5 @@ def set_base_time():

def log(msg: str):
global base_time

start_ms = int((time.time() - base_time) * 1000)
print(f"[{start_ms}ms] {msg}")
t = "{:.2f}s".format((time.time() - base_time))
print(f"[{t}] {msg}")

0 comments on commit 8a61d16

Please sign in to comment.