public function() static iTimeCmdIsAllowed if( get_systime() > iTimeCmdIsAllowed ) { //Your Code } else { // 10 seconds has not passed since command was last used. } }