Watchdog reset when arduino hangs longer than 5 minutes

Thanks guys!

I'll set the watchdog timer to 1 second and then make it do a interrupt each time it isn't reset, And i'll put that in a integer. Then when the integer is 300 i'll make it do a reset. But i do have one question, can the interrupt break the code while it is for example doing a traceroute? will it mess up the timing of it? I am using a library for the traceroute called PingTrace (link: GitHub - Tomas-Dolezel/Arduino---TraceRoute: TraceRoute function for Arduino based on ICMP ping library)