Basic Stopwatch in C++ using ctime (or time.h)