MCPcopy Index your code
hub / github.com/NVIDIA/FastPhotoStyle / Timer

Class Timer

process_stylization.py:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28class Timer:
29 def __init__(self, msg):
30 self.msg = msg
31 self.start_time = None
32
33 def __enter__(self):
34 self.start_time = time.time()
35
36 def __exit__(self, exc_type, exc_value, exc_tb):
37 print(self.msg % (time.time() - self.start_time))
38
39
40def memory_limit_image_resize(cont_img):

Callers 2

stylizationFunction · 0.90
stylizationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected