Hello!
I would to make a plugin that show elapsed time (minute and seconds) since it started;
Is possible??
If yes can anyone help me please?
Python clock
-
-
telnet: uptime
and you can make a little script, and use a file browser or quickbutton to execute
so no need to make a plugin
-
Sorry, i expressed badly,
I need to make an simple timer plugin that count second and minute since the plugin started
I have a lot of problem with Python thread, need an help -
what do you want exactly?
Save the Time at plugin-start and ask later...
from time import time
SaveTime = time()
...
do something
...
print "RunTime: %.3f " % (time()-SaveTime))
use "strftime" for formated output .......or use eTimer if you want do something every second
self.MyTimer = eTimer()
self.MyTimer.callback.append(self.runMyTimerFunction)
self.MyTimer.start(1000) -
Thanks a lot! I needed eTimer funct!
To destroy thread i use: callback.remove is safe? Or It remain in RAM?Thanks a lot
-
Yes you can use remove
self.MyTimer.callback.remove(self.runMyTimerFunction)
self.MyTimer.stop()But that has nothing to do with threading . Where is your problem?
You remove only the Call to the function, etimer is not creating subprocesses.