ug4
progress.h File Reference
#include <iostream>
#include "common/util/string_util.h"
#include "common/log.h"
#include <ctime>
#include <string>
#include <sstream>
#include "stopwatch.h"
#include "util/ostream_util.h"

Go to the source code of this file.

Classes

class  ug::Progress
 

Namespaces

 ug
 the ug namespace
 

Macros

#define PROGRESS_FINISH(progVarName)   progVarName.stop();
 
#define PROGRESS_START(progVarName, dSize, msg)    ug::Progress progVarName; { std::stringstream ss; ss << msg; progVarName.start(dSize, ss.str()); }
 
#define PROGRESS_START_WITH(progVarName, dSize, msg)    { std::stringstream ss; ss << msg; progVarName.start(dSize, ss.str()); }
 
#define PROGRESS_UPDATE(progVarName, d)   progVarName.set(d);
 

Macro Definition Documentation

◆ PROGRESS_FINISH

#define PROGRESS_FINISH (   progVarName)    progVarName.stop();

◆ PROGRESS_START

#define PROGRESS_START (   progVarName,
  dSize,
  msg 
)     ug::Progress progVarName; { std::stringstream ss; ss << msg; progVarName.start(dSize, ss.str()); }

◆ PROGRESS_START_WITH

#define PROGRESS_START_WITH (   progVarName,
  dSize,
  msg 
)     { std::stringstream ss; ss << msg; progVarName.start(dSize, ss.str()); }

◆ PROGRESS_UPDATE

#define PROGRESS_UPDATE (   progVarName,
 
)    progVarName.set(d);