The referee adds time he thinks has been wasted. Usually between 1-4 mins but can technically be any amount.
End of regulation...