open_iA 2025.6
Loading...
Searching...
No Matches
iAPerformanceHelper.h File Reference
#include "iaguibase_export.h"
#include <string>

Classes

class  iAPerformanceHelper
 Class for debug output about start and end of an operation. More...
 
class  iAPerformanceTimer
 Class for simple performance measurements. More...
 
class  iATimeAdder
 Class for adding up intervals of time. More...
 
class  iATimeGuard
 Simple performance helper class following RAII principle. More...
 

Functions

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.
 

Function Documentation

◆ formatDuration()

iAguibase_API QString formatDuration ( double duration,
bool showMS = true,
bool shortNames = false )

Format the given time in a human-readable format.

Parameters
durationthe time to format (in seconds)
showMSwhether to show the milliseconds part
shortNamesif true, use short time span names (s, m, h, d), otherwise (default), use long names (second, minute, hour, day)

◆ getCurrentRSS()

size_t 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.