<s> '''<STR_LIT>''' <EOL> import time <EOL> __all__ = [ '<STR_LIT>' ] <EOL> class Timer ( object ) : <EOL> '''<STR_LIT>''' <EOL> def __init__ ( self , start = True ) : <EOL> self . t0 = <NUM_LIT:0.0> <EOL> self . t1 = <NUM_LIT:0.0> <EOL> self . seconds = self . time <EOL> if start : <EOL> self . start ( ) <EOL> def start ( self ) : <EOL> self . t0 = time . time ( ) <EOL> def stop ( self ) : <EOL> '''<STR_LIT>''' <EOL> return self . finish ( ) <EOL> def finish ( self ) : <EOL> self . t1 = time . time ( ) <EOL> return "<STR_LIT>" % ( self . seconds ( ) , self . milli ( ) , self . micro ( ) ) <EOL> def time ( self ) : <EOL> return self . t1 - self . t0 <EOL> def seconds ( self ) : <EOL> return self . time ( ) <EOL> def milli ( self ) : <EOL> return ( self . time ( ) * <NUM_LIT:1000> ) % <NUM_LIT:1000> <EOL> def micro ( self ) : <EOL> return ( self . time ( ) * <NUM_LIT> ) % <NUM_LIT:1000> </s>
