Apparently tests done by Aston University in Birmingham show that 5 seconds is probably safe enough, though some foods can be eaten safely after 30 seconds, depending on the flooring. Carpet is safest.

Not wearing your shoes indoors may be helpful, however.