sfof
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Comp Class Reference

Class containing basic functions used in generic codes. More...

#include <comp.hpp>

Public Member Functions

void start_time ()
 This method sets the start walltime. More...
 
void end_time ()
 This method sets the end walltime. More...
 
void print_time ()
 This method prints the elapsed walltime. More...
 

Private Member Functions

void d_h_m_s (double, double &, double &, double &, double &)
 This method converts the walltime to days, hours, miutes and seconds. More...
 

Private Attributes

time_t start
 Start walltime. More...
 
time_t end
 End walltime. More...
 

Detailed Description

Class containing basic functions used in generic codes.

Member Function Documentation

◆ d_h_m_s()

void Comp::d_h_m_s ( double  time,
double &  days,
double &  hours,
double &  minutes,
double &  seconds 
)
private

This method converts the walltime to days, hours, miutes and seconds.

Parameters
[in]timeInput walltime.
[out]daysNumbers of days.
[out]hoursNumbers of hours.
[out]minutesNumbers of minutes.
[out]secondsNumbers of seconds.

◆ end_time()

void Comp::end_time ( )

This method sets the end walltime.

◆ print_time()

void Comp::print_time ( )

This method prints the elapsed walltime.

◆ start_time()

void Comp::start_time ( )

This method sets the start walltime.

Member Data Documentation

◆ end

time_t Comp::end
private

End walltime.

◆ start

time_t Comp::start
private

Start walltime.


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