#include <RuntimeFormatter.h>
Public Types | |
enum | { SS = 0, HMS = 1 } |
Public Member Functions | |
RuntimeFormatter (int opts, int width, int prec) | |
Creates a formatter object. | |
string | format (double t) const |
Formats the specified time. | |
Static Public Member Functions | |
static string | format (int opts, int width, int prec, double t) |
Formats the specified time. |
gridripper::util::RuntimeFormatter::RuntimeFormatter | ( | int | opts, | |
int | width, | |||
int | prec | |||
) |
Creates a formatter object.
opts | SS or HMS | |
width | minimum field width | |
prec | number of digits right to the decimal point |
static string gridripper::util::RuntimeFormatter::format | ( | int | opts, | |
int | width, | |||
int | prec, | |||
double | t | |||
) | [static] |
Formats the specified time.
opts | SS or HMS | |
width | minimum field width | |
prec | number of digits right to the decimal point | |
t | the time in seconds |
string gridripper::util::RuntimeFormatter::format | ( | double | t | ) | const |
Formats the specified time.