Capture time while recording

I want to perform real time testing on my android application. How can I add start time and end time while recording and replay in the same time period?