Update main.cpp

Added time tracking of thread execution.