Custom plugin timeout



I need to use plugin which can run al least one hour. I know Nagios have service_check_timeout=60 but I dont want to change this parameter (as a matter of fact I can’t). I saw default plugins with parameter -t. I want to implement such thing in my plugin but I don’t how does it work. I want to tell Nagios to don’t kill service/plugin after 60 seconds but wait untill plugins end it’s work. Is this possible?