#include "iaguibase_export.h"
#include <string>
|
| iAguibase_API QString | formatDuration (double duration, bool showMS=true, bool shortNames=false) |
| | Format the given time in a human-readable format.
|
| |
| size_t | getCurrentRSS () |
| | Helper method for getting the current memory usage.
|
| |
◆ formatDuration()
| iAguibase_API QString formatDuration |
( |
double | duration, |
|
|
bool | showMS = true, |
|
|
bool | shortNames = false ) |
Format the given time in a human-readable format.
- Parameters
-
| duration | the time to format (in seconds) |
| showMS | whether to show the milliseconds part |
| shortNames | if true, use short time span names (s, m, h, d), otherwise (default), use long names (second, minute, hour, day) |
◆ getCurrentRSS()
Helper method for getting the current memory usage.
- Returns
- the number of bytes currently in use by the application
Helper method for getting the current memory usage.