sfof
sfof
src
comp.hpp
Go to the documentation of this file.
1
7
#ifndef COMP_H
8
#define COMP_H
9
16
#include <time.h>
17
18
class
Comp
{
// Class structure for computational functions
19
20
public
:
21
25
void
start_time
();
26
30
void
end_time
();
31
35
void
print_time
();
36
37
private
:
38
40
time_t
start
;
41
43
time_t
end
;
44
53
void
d_h_m_s
(
double
,
double
&,
double
&,
double
&,
double
&);
54
55
};
56
57
#endif // COMP_H
Comp::end
time_t end
End walltime.
Definition:
comp.hpp:43
Comp::print_time
void print_time()
This method prints the elapsed walltime.
Definition:
comp.cpp:24
Comp
Class containing basic functions used in generic codes.
Definition:
comp.hpp:18
Comp::d_h_m_s
void d_h_m_s(double, double &, double &, double &, double &)
This method converts the walltime to days, hours, miutes and seconds.
Definition:
comp.cpp:15
Comp::start_time
void start_time()
This method sets the start walltime.
Definition:
comp.cpp:7
Comp::start
time_t start
Start walltime.
Definition:
comp.hpp:40
Comp::end_time
void end_time()
This method sets the end walltime.
Definition:
comp.cpp:11
Generated on Sat May 30 2020 10:16:29 for sfof by
1.8.18