How long will pain last after a cavity is filled?

it will not last long it will last atleast 2 and a half hours long