added sample code for timestamps in c