time messure
This commit is contained in:
parent
c15cc2df4e
commit
34b74c72d4
@ -74,7 +74,7 @@ class eventManager():
|
|||||||
while( self.isMainEventLoopRunning()):
|
while( self.isMainEventLoopRunning()):
|
||||||
st = time.time()
|
st = time.time()
|
||||||
self.proceedEventLoop()
|
self.proceedEventLoop()
|
||||||
#print('ALL loop ' + str(time.time() - st))
|
print('ALL loop ' + str(time.time() - st))
|
||||||
def handleStopMainLoop(self):
|
def handleStopMainLoop(self):
|
||||||
self._mainLoopRunning.value = 0
|
self._mainLoopRunning.value = 0
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
@ -79,16 +79,18 @@ class fenrirManager():
|
|||||||
self.environment['runtime']['commandManager'].executeDefaultTrigger('onScreenChanged')
|
self.environment['runtime']['commandManager'].executeDefaultTrigger('onScreenChanged')
|
||||||
|
|
||||||
def handleScreenUpdate(self):
|
def handleScreenUpdate(self):
|
||||||
|
s = time.time()
|
||||||
self.environment['runtime']['screenManager'].update('onUpdate')
|
self.environment['runtime']['screenManager'].update('onUpdate')
|
||||||
|
'''
|
||||||
if self.environment['runtime']['applicationManager'].isApplicationChange():
|
if self.environment['runtime']['applicationManager'].isApplicationChange():
|
||||||
self.environment['runtime']['commandManager'].executeDefaultTrigger('onApplicationChange')
|
self.environment['runtime']['commandManager'].executeDefaultTrigger('onApplicationChange')
|
||||||
self.environment['runtime']['commandManager'].executeSwitchTrigger('onSwitchApplicationProfile', \
|
self.environment['runtime']['commandManager'].executeSwitchTrigger('onSwitchApplicationProfile', \
|
||||||
self.environment['runtime']['applicationManager'].getPrevApplication(), \
|
self.environment['runtime']['applicationManager'].getPrevApplication(), \
|
||||||
self.environment['runtime']['applicationManager'].getCurrentApplication())
|
self.environment['runtime']['applicationManager'].getCurrentApplication())
|
||||||
|
'''
|
||||||
if not self.environment['runtime']['screenManager'].isScreenChange():
|
#if not self.environment['runtime']['screenManager'].isScreenChange():
|
||||||
self.environment['runtime']['commandManager'].executeDefaultTrigger('onScreenUpdate')
|
self.environment['runtime']['commandManager'].executeDefaultTrigger('onScreenUpdate')
|
||||||
|
#print(time.time() -s)
|
||||||
def handlePlugInputDevice(self):
|
def handlePlugInputDevice(self):
|
||||||
self.environment['runtime']['commandManager'].executeDefaultTrigger('PlugInputDevice')
|
self.environment['runtime']['commandManager'].executeDefaultTrigger('PlugInputDevice')
|
||||||
def handleHeartBeat(self):
|
def handleHeartBeat(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user