make you hust? is that a new word or something in english?
oks let me see if I can make you understand..because this here..has nothing to do with
import time or c++ classes...
it's basically explaining how to use a time reference from the last time used when potting
unixtime() is a millisecond function to return current time with milliseconds included
and you basically use it to set time....onrender pops up and checks from last time and uses the autopot if more than 300 milliseconds have passes... (this time is to be configurable so I can change it at any time instead of hard coding it into the code)
vamos ver se consigo fazer-te entender...por causa que isto não tem nada a ver com import time ou classes c++
é basicamente uma explicação de como usar uma referência de tempo da ultima vez que foram usados pots
unixtime() é uma função em milisegundos para retornar o tempo actual com milisegundos incluido
tu básicamente usas ela para defenir o tempo actual...o onrender quando funciona vê o tempo desde a ultima vez que o autopot foi usado e se mais de 300 milisegundos passaram...(este tempo é configuravel para que possas muda-lo a qualquer hora ao invez de mete-lo no próprio código)
a ver se yo te puedo hacer intender... porque esto no tiene nada con import time o clases de c++
esto es basicamente una forma de como usar una referencia de tiempo desde la ultima vez que fueron usados pots
unixtime() es una funcion en milisegundos para retornar la hora actual con milisegundos
uste usala para definir la hora actual..la funcion onrender quando funciona chequa la ultima vez que lo autopot fue usado y se mas de 300 millis passaron...(esto tiempo é configurable para que puedas cambiarlo a qualquier hora al invez de meterlo en lo mismo codigo)
I hope multiple translations work out for you...because it doesn't seem to me like you understand anything I say...
also...I posted exactly..how NOT to use timers..
to prevent clutter
and for an autopotter function it has to be OnRender as OnUpdate is way slower...
but seems like you're learning...constructive criticism..is the way to talk to people..not trash talking
and btw...curTime = time.clock()
this doesn't work for a millisecond return in python 22
which was the reason why I posted my millisecond unixtime function..
because it took a while to get it to work proper...not even the people at irc.. #python on sourceforge.org had any idea how to do it...
they simply told me nobody remembers because python22 is so old