Trees | Indices | Help |
|
---|
|
object --+ | Timer
You can use this class to create your own timer function with custom default behavior. Example usage: from schrodinger.application.desmond.packages.timer import Timer mytimer = Timer(threshold=0.2) # Creates a timer with 0.2 threshold. with mytimer("Reading the trajectory..."): traj.read_trj(trj_fname) In this example, C{mytimer} behaves exactly the same as the standard C{timer} (see the docstring of this module) except for the default value of C{threshold} parameter that has been customed to 0.2.
|
|||
Args Args(message, threshold, fmt, record, logger) |
|
|||
|
|||
|
|||
Inherited from |
|
|||
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 2 06:33:09 2017 | http://epydoc.sourceforge.net |