Should that t++ be a time++?

Also, I don't know what more you expect this to do. You don't have any logic in there for comparing start time or current time- all you're doing is keeping track of...