It really depends on the type and how much was taken. It could last a few minutes, hours, and maybe even a day, which would be only for a very serious surgery, I think.
It depends, usually, no more than two or three days.You have to remember as with any drug, the drug must run its course. IT WILL ALWAYS EVENTUALLY RUN ITS COURSE, WHICH IS TO SAY BE PASSED THROUGH...