parmed.utils.timer module¶
This is a module that contains basic timer facilities. It’s useful for profiling the performance of a script in “chunks”.
-
class
parmed.utils.timer.
Timer
[source]¶ Bases:
object
Timer class. It adds new timers and keeps track of how much time has been spent.
Methods
add_timer
(timer_name, description)Add a new timer
done
()Tell Timer we are done, and we can convert units to best human-readable option
end_all
()End all of the timers
print_
(timer, outfile[, newline])Prints the value of the timer
start_timer
(timer_name)Start the specified timer
stop_timer
(timer_name)End the specified timer