Added a var for total time spent. I don't know why but the + sign didn't want to work on its own. So i had to a *1 to make it print out properly