ScopedTimeLogger class