Should you train by time or distance?

What’s the difference between running one kilometre repeats in five minutes and running five minute repeats and covering one kilometre?