EGSnrc C++ class library
Report PIRS-898 (2021)
Iwan Kawrakow, Ernesto Mainegra-Hing, Frederic Tessier, Reid Townson and Blake Walters
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Coding Examples
File List
File Members
egs++
egs_timer.h
Go to the documentation of this file.
1
/*
2
###############################################################################
3
#
4
# EGSnrc egs++ timer headers
5
# Copyright (C) 2015 National Research Council Canada
6
#
7
# This file is part of EGSnrc.
8
#
9
# EGSnrc is free software: you can redistribute it and/or modify it under
10
# the terms of the GNU Affero General Public License as published by the
11
# Free Software Foundation, either version 3 of the License, or (at your
12
# option) any later version.
13
#
14
# EGSnrc is distributed in the hope that it will be useful, but WITHOUT ANY
15
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16
# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
17
# more details.
18
#
19
# You should have received a copy of the GNU Affero General Public License
20
# along with EGSnrc. If not, see <http://www.gnu.org/licenses/>.
21
#
22
###############################################################################
23
#
24
# Author: Iwan Kawrakow, 2005
25
#
26
# Contributors:
27
#
28
###############################################################################
29
*/
30
31
37
#ifndef EGS_TIMER_
38
#define EGS_TIMER_
39
40
#include "
egs_libconfig.h
"
41
42
class
EGS_PrivateTimer;
43
57
class
EGS_EXPORT
EGS_Timer
{
58
59
public
:
60
62
EGS_Timer
();
64
~
EGS_Timer
();
65
67
void
start();
68
71
EGS_Float time();
72
73
private
:
74
75
EGS_PrivateTimer *p;
76
EGS_Timer
(
const
EGS_Timer
&) {};
77
78
};
79
80
#endif
EGS_EXPORT
#define EGS_EXPORT
Export symbols from the egspp library.
Definition:
egs_libconfig.h:90
EGS_Timer
A simple class for measuring CPU time.
Definition:
egs_timer.h:57
egs_libconfig.h
Defines the EGS_EXPORT and EGS_LOCAL macros.
Generated by
1.8.5