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
30namespace 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
void operator=(const Timer &)
time_t timer
Definition Timer.h:51
Timer()
Constructor.
Definition Timer.cpp:26
std::string time() const
Return time.
Definition Timer.cpp:36
std::string date() const
Return date.
Definition Timer.cpp:30
Timer(const Timer &)
Timer class.
Definition Timer.cpp:22