change activity with time

Its just "millis" really which is why I dont understand how this works. I subtract millis from millis and end up with the relative time since start...?