2nd generation clocklogger in C++