C++ mpi module for stochmagnet_main Package
Public Member Functions | Static Public Member Functions | List of all members
CORE_Chrono Class Reference

this class describes the chono class by default write on standart output More...

#include <CORE_Chrono.h>

Inheritance diagram for CORE_Chrono:
Inheritance graph
[legend]
Collaboration diagram for CORE_Chrono:
Collaboration graph
[legend]

Public Member Functions

 CORE_Chrono ()
 build a CORE_Chrono
 
virtual ~CORE_Chrono (void)
 destroy a CORE_Chrono
 
virtual tMemSize getMemorySize () const override
 return the memory size of the class and the memory size of all its attributes/associations More...
 
void start ()
 start the chrono
 
tULLInt stop ()
 stop the chrono and return the duration time in micro seconds as an int More...
 
tString getDate ()
 get the date in string More...
 
- Public Member Functions inherited from CORE_Object
template<class T >
std::shared_ptr< T > getSharedPointer ()
 return the shared pointer for this More...
 
template<class T >
std::shared_ptr< const T > getConstSharedPointer () const
 return a const shared pointer for this More...
 
virtual tMemSize getContentsMemorySize () const
 return nthe memory size of the included associations More...
 
template<class T >
tBoolean isInstanceOf () const
 test if the clas T is an instance of this class More...
 
tString getClassName () const
 return the name of the class More...
 
tString getPointerString () const
 retrun the pointer of the class as a string More...
 
tString getIdentityString () const
 retrun the string identification of the class More...
 
virtual tString toString () const
 return the string representation of the object node More...
 

Static Public Member Functions

static tULLInt GetClockTime ()
 get the clock time More...
 
static tULLInt GetClockDuration (const tULLInt &startTime)
 get the clock time duration More...
 
static tULLInt ConvertDuration (tULLInt duration, tUInt &d, tUInt &h, tUInt &m, tUInt &s, tUInt &ms)
 convert the duration as days,hours,minutes,second,milliseconds,microseconds More...
 
static tString ConvertDurationToString (tULLInt duration)
 convert the duration the duration to string More...
 
static tString GetDate ()
 return the current date as a string
 
- Static Public Member Functions inherited from CORE_Object
static tBoolean EnableMemoryStack (const tBoolean &isMemoryChecked)
 enable the memory stack More...
 
static void EnableMemoryStack ()
 enable the memory stack
 
static void DisableMemoryStack ()
 disable the memory stack
 
static tBoolean IsMemoryStackEnabled ()
 return trur if the memory stack is enabled
 
static tString MemoryStackToString ()
 get the memory stack in string More...
 
static tIndex GetRegisteredClassesNumber ()
 get the memory stack in string More...
 

Additional Inherited Members

- Protected Member Functions inherited from CORE_Object
 CORE_Object ()
 build an instance of the object
 
virtual ~CORE_Object ()
 destroy the instance of object std

 

Detailed Description

this class describes the chono class by default write on standart output

Member Function Documentation

◆ ConvertDuration()

static tULLInt CORE_Chrono::ConvertDuration ( tULLInt  duration,
tUInt &  d,
tUInt &  h,
tUInt &  m,
tUInt &  s,
tUInt &  ms 
)
inlinestatic

convert the duration as days,hours,minutes,second,milliseconds,microseconds

Parameters
[in]durationduration in ms
[out]dnumber of days
[out]hnumber of hours
[out]mnumber of minutes
[out]snumber of seconds
[out]msnumber of milli-seconds

◆ ConvertDurationToString()

static tString CORE_Chrono::ConvertDurationToString ( tULLInt  duration)
inlinestatic

convert the duration the duration to string

Parameters
[in]durationduration in milli seconds

◆ GetClockDuration()

static tULLInt CORE_Chrono::GetClockDuration ( const tULLInt &  startTime)
inlinestatic

get the clock time duration

Parameters
[in]startTime: start time in clock
Returns
the duration in milli seconds

◆ GetClockTime()

static tULLInt CORE_Chrono::GetClockTime ( )
inlinestatic

get the clock time

Returns
the time

◆ getDate()

tString CORE_Chrono::getDate ( )
inline

get the date in string

Returns
YYYY/MM/DD-HH:MM:SS

◆ getMemorySize()

virtual tMemSize CORE_Chrono::getMemorySize ( ) const
inlineoverridevirtual

return the memory size of the class and the memory size of all its attributes/associations

Returns
the memory size of the class and the memory size of its attributes/associations in bytes 1 octet = 1 byte 1 Ko = 1024 bytes 1 Mo = 1024 Ko 1 Go = 1024 Mo

Reimplemented from CORE_Object.

◆ stop()

tULLInt CORE_Chrono::stop ( )
inline

stop the chrono and return the duration time in micro seconds as an int

Returns
the time in milli seconds from last stop or last start

The documentation for this class was generated from the following file: