Times an event then prints out the time and the name of the event, nice for debugging and seeing that the code is progressing
Parameters: | Event : str
Time1 : time.time
|
---|---|
Returns: | Time2 : time.time
|
Examples
>>> import spacepy.toolbox as tb
>>> import time
>>> t1 = time.time()
>>> t1 = tb.eventTimer('Test event finished', t1)
('4.40', 'Test event finished')