Is there any inbuilt activity for Capture Time for each step

How can we capture it programmatically?