Simple interval class for timing events in C++