I’m going to do the same thing but was going to use time_t type (and store it somewhere else).
Should CCUserDefault be used for something like per level values?
Store the start time when the level starts - time(&startTime)
then in the level complete - time(&endTime)
Total Time would then be time = difftime(endTime, startTime).
The only problem… what if the level is paused?
The other thing I thought of… what about just storing the total of all milliseconds passed in to my update/tick function.
That is not called when the game is paused so should be correct?