starting time as a function.