-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
hi,
i propose small improvement:
instead of:
>> t.tic()
>> t.toc(restart=True)
Elapsed time is 36.986837 seconds.
>>t.toc(restart=True)
Elapsed time is 2.393425 seconds
>>t.toc(restart=True)
Elapsed time is 2.393425 seconds
>>t.toc(restart=True)
Elapsed time is 2.393425 seconds
...
it would be great to have such an option:
t.tic(restart=True)
>> t.toc()
Elapsed time is 36.986837 seconds.
>>t.toc()
Elapsed time is 2.393425 seconds
>>t.toc()
Elapsed time is 2.393425 seconds
>>t.toc(restart=False)
Elapsed time is 2.393425 seconds
or
t.tic(restart=True)
>> t.toc()
Elapsed time is 36.986837 seconds.
>>t.toc()
Elapsed time is 2.393425 seconds
>>t.toc()
Elapsed time is 2.393425 seconds
t.finaltoc()
Elapsed time is 2.393425 seconds
or
t.tic()
>> t.rtoc()
Elapsed time is 36.986837 seconds.
>>t.rtoc()
Elapsed time is 2.393425 seconds
>>t.rtoc()
Elapsed time is 2.393425 seconds
>>t.toc()
Elapsed time is 2.393425 seconds
where "rtoc" means "restartable toc"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels