time messure

This commit is contained in:
chrys 2017-06-25 21:29:01 +02:00
parent c15cc2df4e
commit 34b74c72d4
2 changed files with 7 additions and 5 deletions

View File

@ -74,7 +74,7 @@ class eventManager():
while( self.isMainEventLoopRunning()):
st = time.time()
self.proceedEventLoop()
#print('ALL loop ' + str(time.time() - st))
print('ALL loop ' + str(time.time() - st))
def handleStopMainLoop(self):
self._mainLoopRunning.value = 0
time.sleep(0.1)

View File

@ -79,16 +79,18 @@ class fenrirManager():
self.environment['runtime']['commandManager'].executeDefaultTrigger('onScreenChanged')
def handleScreenUpdate(self):
s = time.time()
self.environment['runtime']['screenManager'].update('onUpdate')
'''
if self.environment['runtime']['applicationManager'].isApplicationChange():
self.environment['runtime']['commandManager'].executeDefaultTrigger('onApplicationChange')
self.environment['runtime']['commandManager'].executeSwitchTrigger('onSwitchApplicationProfile', \
self.environment['runtime']['applicationManager'].getPrevApplication(), \
self.environment['runtime']['applicationManager'].getCurrentApplication())
if not self.environment['runtime']['screenManager'].isScreenChange():
self.environment['runtime']['commandManager'].executeDefaultTrigger('onScreenUpdate')
'''
#if not self.environment['runtime']['screenManager'].isScreenChange():
self.environment['runtime']['commandManager'].executeDefaultTrigger('onScreenUpdate')
#print(time.time() -s)
def handlePlugInputDevice(self):
self.environment['runtime']['commandManager'].executeDefaultTrigger('PlugInputDevice')
def handleHeartBeat(self):