A little of both
The beginning of clot formation is probably fairly sudden.
Growth of the clot is more gradual. Initially, when the clot is small, the pain and swelling it causes is less severe and is more likely due to the inflammation
that the clot produces. Once the clot is big enough to completely block a vein (especially a large one) the increase in pain and swelling can be sudden and severe.