Fix total elapsed time in OptimizationLogger.