sclass NotTooOften { long minDelay; long lastTime; *() {} *(long *minDelay) {} bool canDoAgain_willDoIfTrue() { if (lastTime == 0 || now() >= lastTime+minDelay) ret true with lastTime = now(); false; } bool yo() { ret canDoAgain_willDoIfTrue(); } bool get() { ret canDoAgain_willDoIfTrue(); } }