Fixed bug in QSDcontract. Implemented lap time function in time_stamp