Switch to perf_counter() for latency measurement (#19177)
Signed-off-by: Mohammed Yasin <32206511+Y-T-G@users.noreply.github.com>
This commit is contained in:
parent
9d8c2fe3c7
commit
1bb46cda4b
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ class Profile(contextlib.ContextDecorator):
|
||||||
"""Get current time."""
|
"""Get current time."""
|
||||||
if self.cuda:
|
if self.cuda:
|
||||||
torch.cuda.synchronize(self.device)
|
torch.cuda.synchronize(self.device)
|
||||||
return time.time()
|
return time.perf_counter()
|
||||||
|
|
||||||
|
|
||||||
def segment2box(segment, width=640, height=640):
|
def segment2box(segment, width=640, height=640):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue