Need macro for recording time

Hi,

I need a macro that will record the time spent on part/assembly/drawing document and will save the data in excel. The excel should columns like part no, starting time, ending time, date and total time elapsed like that...

Does anybody have this?

SolidworksApi macros