OPALX (Object Oriented Parallel Accelerator Library for Exascal)
master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
Timer.h
Go to the documentation of this file.
1
#ifndef OPAL_Timer_HH
2
#define OPAL_Timer_HH 1
3
4
// ------------------------------------------------------------------------
5
// $RCSfile: Timer.h,v $
6
// ------------------------------------------------------------------------
7
// $Revision: 1.1.1.1 $
8
// ------------------------------------------------------------------------
9
// Copyright: see Copyright.readme
10
// ------------------------------------------------------------------------
11
//
12
// Class: Timer
13
//
14
// ------------------------------------------------------------------------
15
//
16
// $Date: 2000/03/27 09:33:48 $
17
// $Author: Andreas Adelmann $
18
//
19
// ------------------------------------------------------------------------
20
21
#include <ctime>
22
#include <string>
23
24
// Class Timer
25
// ------------------------------------------------------------------------
27
// Encapsulates the UNIX wall time functions.
28
// Get Calendar date or time.
29
30
namespace
OPALTimer
{
31
32
class
Timer
{
33
public
:
35
// Store the system clock time.
36
Timer
();
37
38
~Timer
();
39
41
std::string
date
()
const
;
42
44
std::string
time
()
const
;
45
46
private
:
47
// Not implemented.
48
Timer
(
const
Timer
&);
49
void
operator=
(
const
Timer
&);
50
51
time_t
timer
;
52
};
53
54
}
// namespace OPALTimer
55
#endif
// OPAL_Timer_HH
OPALTimer::Timer
Definition
Timer.h:32
OPALTimer::Timer::operator=
void operator=(const Timer &)
OPALTimer::Timer::timer
time_t timer
Definition
Timer.h:51
OPALTimer::Timer::~Timer
~Timer()
Definition
Timer.cpp:28
OPALTimer::Timer::Timer
Timer()
Constructor.
Definition
Timer.cpp:26
OPALTimer::Timer::time
std::string time() const
Return time.
Definition
Timer.cpp:36
OPALTimer::Timer::date
std::string date() const
Return date.
Definition
Timer.cpp:30
OPALTimer::Timer::Timer
Timer(const Timer &)
OPALTimer
Timer class.
Definition
Timer.cpp:22
src
Utilities
Timer.h
Generated on Mon Jun 1 2026 10:40:53 for OPALX (Object Oriented Parallel Accelerator Library for Exascal) by
1.9.8