DS1302 as a counter/count-up timer I would like to use the DS1302, as a count up timer.
My goal is to have the arduino time the amount of me driving my car.
So it DS1302 will be used a count-up timer ie accumulate time. however when the car is switched off, I don't want to lose the value, and when I use my car again I would like to the time to continue accumulating. The resolution can be in minutes, as this will probably be the best.

I would like something like an odometer of a car, except its going to be the time, instead of distance.

Q: Can this be done with the DS1302 Module? and also how can I do this? Is there a sample code for a count-up timer?
Do you mean only accumulate during powered/driving, or also during standing still? 

If the former, just get the start time in setup, then in loop continuously get the time and calculate the difference between it and the time read in setup. Since you don't know when power is lost you need to continually write the elapsed time to some form of non-volatile memory. You could use the Arduinos EEPROM, but that can wear out over time. It's better the use the DS1302s 31 byte of battery backed RAM. Next time the arduino starts up you need to read out this value and add this to the difference. 

In case of the latter, you can halt the DS1302 so it stops incrementing time.