measure time passed running dhcp hooks