Loading [MathJax]/jax/input/TeX/config.js
OGS
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
z
Enumerations
b
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
l
m
n
p
r
s
t
v
y
Classes
Class List
Class Index
Class Hierarchy
Files
File List
File Members
All
a
b
c
d
e
f
g
i
k
m
n
o
p
r
s
t
v
w
x
Functions
a
c
d
e
f
g
i
m
o
p
r
s
t
v
w
Variables
Typedefs
Enumerations
Macros
b
c
g
m
n
o
p
r
s
t
▼
OGS
►
OpenGeoSys 6.5.4-423-gda6ede93c83 source code documentation
►
OGS CTests—Project Files
►
OGS Input File Parameters—Quality Assurance
►
OGS Input File Parameters
BulkMappingDocuPage
Todo List
OGS Input File Parameters—List of incomplete documentation pages
Bibliography
►
Namespaces
►
Classes
▼
Files
▼
File List
►
Applications
▼
BaseLib
►
IO
►
Algorithm.h
►
BoostMP11Utils.h
►
CompilerWorkarounds.h
ConfigTree-fwd.h
►
ConfigTree-impl.h
►
ConfigTree.cpp
►
ConfigTree.h
►
ConfigTreeUtil.cpp
►
ConfigTreeUtil.h
►
ContainerTools.h
►
cpp23.h
►
CPUTime.h
►
DateTools.cpp
►
DateTools.h
►
DisableFPE.h
►
Error.h
►
ExportSymbol.h
►
FileTools.cpp
►
FileTools.h
►
Histogram.cpp
►
Histogram.h
►
Logging.cpp
►
Logging.h
MemWatch.cpp
►
MemWatch.h
►
MPI.h
►
PrjProcessing.cpp
►
PrjProcessing.h
►
quicksort.h
►
RunTime.h
►
StringTools.cpp
►
StringTools.h
►
StrongType.h
Subdivision.cpp
►
Subdivision.h
►
ThreadException.h
►
TimeInterval.cpp
►
TimeInterval.h
►
TMP.h
►
build
►
ChemistryLib
Documentation
►
GeoLib
►
InfoLib
►
MaterialLib
►
MathLib
►
MeshGeoToolsLib
►
MeshLib
►
MeshToolsLib
►
NumLib
►
ParameterLib
►
ProcessLib
►
File Members
CPUTime.h
Go to the documentation of this file.
1
15
#pragma once
16
17
#include <ctime>
18
19
namespace
BaseLib
20
{
22
class
CPUTime
23
{
24
public
:
26
void
start
() {
start_time_
= clock(); }
27
29
double
elapsed
()
const
30
{
31
return
(clock() -
start_time_
) /
static_cast<
double
>
(CLOCKS_PER_SEC);
32
}
29
double
elapsed
()
const
{
…
}
33
34
private
:
35
double
start_time_
= 0.;
36
};
22
class
CPUTime
{
…
};
37
38
}
// end namespace BaseLib
BaseLib::CPUTime
Count CPU time.
Definition
CPUTime.h:23
BaseLib::CPUTime::start
void start()
Start the timer.
Definition
CPUTime.h:26
BaseLib::CPUTime::start_time_
double start_time_
Definition
CPUTime.h:35
BaseLib::CPUTime::elapsed
double elapsed() const
Get the elapsed time after started.
Definition
CPUTime.h:29
BaseLib
Definition
TestDefinition.h:21
BaseLib
CPUTime.h
Generated by
1.12.0