Molecular Dynamics Simulation
1.0
|
#include <string>
Go to the source code of this file.
Functions | |
std::string | format_seconds_eta (int total_seconds) |
Formats the given seconds into a string of the form "HH:MM:SS". More... | |
std::string | format_mup_s (double mup_s) |
Formats the given mup/s into a string. More... | |
std::string | format_seconds_total (double total_seconds) |
Formats the given seconds into a string of the form "HHh MMm SSs MMMms". More... | |
std::string format_mup_s | ( | double | mup_s | ) |
Formats the given mup/s into a string.
mup_s | mup/s to be formatted |
If the given mup/s are negative, "N/A" is returned. If the given mup/s are greater than 1000, the value is divided by 1000 and a "k" is appended. If the given mup/s are greater than 1000000, the value is divided by 1000000 and a "M" is appended.
Definition at line 17 of file FormatTime.cpp.
std::string format_seconds_eta | ( | int | total_seconds | ) |
Formats the given seconds into a string of the form "HH:MM:SS".
total_seconds | Seconds to be formatted |
If the given seconds are negative, "N/A" is returned.
Definition at line 5 of file FormatTime.cpp.
std::string format_seconds_total | ( | double | total_seconds | ) |
Formats the given seconds into a string of the form "HHh MMm SSs MMMms".
total_seconds | Seconds to be formatted |
If the given seconds are negative, "N/A" is returned.
Definition at line 34 of file FormatTime.cpp.