#NEWLINE# def __init__( self , time_source = time . time , resolution = 0.01 ) : #NEWLINE# #INDENT# '\n    Args:\n      time_source - A callable to get the current time (in seconds).\n      resolution - The minimum resolution of the timer.  If set, all events are\n                   quantized to this resolution.\n    ' #NEWLINE# self . _queue = [ ] #NEWLINE# self . _event = Event ( ) #NEWLINE# self . _seq = 0 #NEWLINE# self . _resolution = resolution #NEWLINE# self . _time_source = resolution #NEWLINE# self . _worker = gevent . spawn ( self . _TimerWorker )