[powertimer] fix variable was not declared