I would just use the seconds clock to increment a seconds variable, when it reaches 60, increment the mins variable, reset the seconds, cascade this to hours, days years if required, simple but effective.
If you really need ms on many systems timebases are in 10ms increments but the same applies, forget leading 0's, if displayed on an HMI then these give you an option of displaying leading 0's or not.