def stop( self ): current = Timer.getMsClock( ) self.offset = current - self.offset self.time = self.offset self.running = False
def getTimeMS( self ): current = Timer.getMsClock( ) current -= self.offset current += self.time return float( current )
def restart( self ): self.offset = Timer.getMsClock( ) self.time = 0.0 self.running = True
def start( self ): if self.running: return self.offset = Timer.getMsClock( ) self.running = True