neurotools.util.time module
Helper functions associated with time
- neurotools.util.time.tic(doprint=True, prefix='')[source]
Similar to Matlab tic stackoverflow.com/questions/5849800/tic-toc-functions-analog-in-python
- Parameters:
doprint (bool) – if True, print elapsed time. Else, return it.
- Returns:
t – current_milli_time()
- Return type:
int
- neurotools.util.time.toc(doprint=True, prefix='')[source]
Similar to Matlab toc stackoverflow.com/questions/5849800/tic-toc-functions-analog-in-python
- Parameters:
doprint (bool) – if True, print elapsed time. Else, return it.
prefix (str)
- Returns:
t (number) – Current timestamp
dt (number) – Time since the last call to the tic() or toc() function.