pyj2d :: util :: Timer :: Class Timer

Class Timer

object --+
         |
        Timer

Simple profiling timer. Output log directed to console.
Instance Methods
 
__init__(self, log='console')
x.__init__(...) initializes x; see help(type(x)) for signature
 
get_time(self)
Get current time.
 
set_time(self)
Set current time.
 
lap_time(self, time_i=None, time_f=None, number=100, print_result=True)
Time lapsed since previous set_time. Optional arguments time_i and time_f, number of calls to average, and print_results to output result.
 
print_log(self, text)
Print text to output.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, log='console')
(Constructor)

 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)