Public Member Functions | |
| RuntimeFormatter (int opts, int width, int prec) | |
| Creates a formatter object. | |
| String | format (double t) |
| Formats the specified time. | |
Static Public Member Functions | |
| static String | format (int opts, int width, int prec, double t) |
| Formats the specified time. | |
Static Public Attributes | |
| static final int | SS = 0 |
| Print seconds. | |
| static final int | HMS = 1 |
| Print hours, minutes and seconds. | |
| gridripper::util::RuntimeFormatter::RuntimeFormatter | ( | int | opts, | |
| int | width, | |||
| int | prec | |||
| ) | [inline] |
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 | |||
| ) | [inline, 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 | ) | [inline] |
Formats the specified time.
final int gridripper::util::RuntimeFormatter::SS = 0 [static] |
Print seconds.
final int gridripper::util::RuntimeFormatter::HMS = 1 [static] |
Print hours, minutes and seconds.
1.5.6