time counter

I am going to use the max7219 to drive the segments as I already have one
I just have one question
I know how to set the time on a rtc but how would I make it tell me how long since it was turned on