Update main.cpp

Adjusted determination of time at a few locations