main time stamper