Closing with the dupe hammer is always instant.
However, there is a grace period in which the server will still accept an answers 'in mid flight' to still be posted. That grace period is four hours. This applies not just to dupe-hammered posts, but to all closures.
The web UI will disable the 'Post Your Answer' button when the browser is signalled that a post is closed, and a reload of the page will no longer show the post box after closure. But the mobile web UI does not disable the button (provided you loaded the page before closure), and you could always re-enable the button from a browser console.
Also see How was this answer posted after this question was closed? and Why was an answer allowed on a question that was merged into another one?