Skip to content

Commit

Permalink
update timer log message
Browse files Browse the repository at this point in the history
  • Loading branch information
vorozhkog committed Dec 2, 2024
1 parent 6d16d01 commit f461c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
self.elapsed = self.end - self.start
msg = self.message or f"Block execution"
if self.items_cnt is not None:
log_msg = f"{msg} time: {self.elapsed:.3f} seconds per {self.items_cnt} item ({self.elapsed/self.items_cnt:.3f} seconds per item)"
log_msg = f"{msg} time: {self.elapsed:.3f} seconds per {self.items_cnt} items ({self.elapsed/self.items_cnt:.3f} seconds per item)"
else:
log_msg = f"{msg} time: {self.elapsed:.3f} seconds"
sly.logger.info(log_msg)
Expand Down

0 comments on commit f461c1c

Please sign in to comment.