help with creating function from snippit

Thanks guys it was that simple. All I had to do is void function and don't worry about return because of the global TIME1. it works perfect with the two changes. Thanks for the help and the patience. Im learning but if have not done any programing in 20 years.