Skip to content

Commit

Permalink
Add drawing duration info
Browse files Browse the repository at this point in the history
  • Loading branch information
mononobi committed Feb 19, 2023
1 parent bd11e8b commit 7fe40f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/drawpia/manager.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-

import time
import random

from drawpia.extractor import Extractor, Entry
Expand Down Expand Up @@ -328,9 +329,13 @@ def perform(self):
"""

self._confirm()
start = time.time()
groups = self._draw()
end = time.time()
duration = '{:0.2f}'.format((end - start) * 1000)
print('*' * 200)
print('Performing The Draw...')
print(f'Drawing took [{duration}] ms')
print('*' * 200)
print('Draw Results:')
for item in groups:
Expand Down

0 comments on commit 7fe40f6

Please sign in to comment.