Files
hexapod-robot/2012-simulation/processing-3d/hexapod/CustomTimer.pde
T
2026-10-25 17:26:27 +01:00

20 lines
279 B
Plaintext

class CustomTimer
{
int time;
boolean start=true;
public boolean delay(int delay)
{
if (start)
{
time = millis();
start = false;
}
if (millis() - time >= delay)
{
start = true;
return true;
} else
return false;
}
}