Does five seconds too much?
It would be better to wait on websocket to know if a new block arrived. And if so, request difficulty.