Skip to content

Commit 7c3e709

Browse files
committed
clean up unused items in time calc
1 parent 132dbb1 commit 7c3e709

File tree

1 file changed

+1
-4
lines changed
  • content/learning-paths/servers-and-cloud-computing/whisper

1 file changed

+1
-4
lines changed

content/learning-paths/servers-and-cloud-computing/whisper/whisper.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,7 @@ print(f'\n{result["text"]}\n')
110110

111111
# Calculate and print the duration of the inference
112112
duration = end_time - start_time
113-
hours = duration // 3600
114-
minutes = (duration - (hours * 3600)) // 60
115-
seconds = (duration - ((hours * 3600) + (minutes * 60)))
116-
msg = f'\nInferencing elapsed time: {seconds:4.2f} seconds\n'
113+
msg = f'\nInferencing elapsed time: {duration:4.2f} seconds\n'
117114

118115
print(msg)
119116
```

0 commit comments

Comments
 (0)