This class is a time class to manage time within an environment.
More...
#include <MPI_Chrono.h>
This class is a time class to manage time within an environment.
◆ addToDuration()
| void MPI_Chrono::addToDuration |
( |
const tULLInt & |
t | ) |
|
|
inline |
add to duration
- Parameters
-
| [in] | t | : time in second to add to duration |
◆ ConvertDuration()
| static tULLInt MPI_Chrono::ConvertDuration |
( |
tULLInt |
duration, |
|
|
tUInt & |
d, |
|
|
tUInt & |
h, |
|
|
tUInt & |
m, |
|
|
tUInt & |
s |
|
) |
| |
|
inlinestatic |
convert the duration as days,hours,minutes,second,milliseconds,microseconds
- Parameters
-
| [in] | duration | duration in ms |
| [out] | d | number of days |
| [out] | h | number of hours |
| [out] | m | number of minutes |
| [out] | s | number of seconds |
◆ ConvertDurationToString()
| static tString MPI_Chrono::ConvertDurationToString |
( |
tULLInt |
duration | ) |
|
|
inlinestatic |
convert the duration the duration to string
- Parameters
-
| [in] | duration | duration in s |
◆ getContentsMemorySize()
| virtual tMemSize MPI_Chrono::getContentsMemorySize |
( |
| ) |
const |
|
inlineoverridevirtual |
return the memory size of the included associations
- Returns
- the memory size of the storage in bytes 1 Kb = 1024 bytes 1 Mb = 1024 Kb 1 Gb = 1024 Mb 1 Tb = 1024 Gb 1 Hb = 1024 Tb
Reimplemented from CORE_Object.
◆ getDuration()
| const tULLInt& MPI_Chrono::getDuration |
( |
| ) |
const |
|
inline |
get the duration in second
return the duration in second
◆ GetTime()
| static tReal MPI_Chrono::GetTime |
( |
| ) |
|
|
inlinestatic |
get the time
- Returns
- the time in seconds
◆ New()
| static CORE_UniquePointer<MPI_Chrono> MPI_Chrono::New |
( |
| ) |
|
|
inlinestatic |
create a new instance of class within an unique pointer
- Returns
- a new unique pointer of this class
◆ operator+=()
| MPI_Chrono& MPI_Chrono::operator+= |
( |
const tULLInt & |
t | ) |
|
|
inline |
operator +=
- Parameters
-
| [in] | t | : duration time to add in second |
◆ operator=()
| MPI_Chrono& MPI_Chrono::operator= |
( |
const tULLInt & |
t | ) |
|
|
inline |
operator =
- Parameters
-
| [in] | t | : initial duration time in second |
◆ setDuration()
| void MPI_Chrono::setDuration |
( |
const tULLInt & |
d | ) |
|
|
inline |
set the duration in second
- Parameters
-
◆ stop()
| tULLInt MPI_Chrono::stop |
( |
| ) |
const |
|
inline |
stop the chrono
- Returns
- the duration in seconds between the start method called and the stop method called
The documentation for this class was generated from the following file:
- /home/despreau/Developpement/CPP/devcpp20/include/mpi/multicores/MPI_Chrono.h