Windows program that times other program usage

Is there any software that logs how long each program on your computer is run for, and keeps a running total?

I love playing games on my Nintendo 3DS and then checking afterword how long it took me to beat the game/how many hours I clocked in on it.

Is there an easy way I could do this for my PC games without having to actually run a timer and add up the times myself?

I’m using a Windows 7 computer. Thank you in advance.