NeoPZ
TPZfTime.h
Go to the documentation of this file.
1 
7 #ifndef TPZFTIME_H
8 #define TPZFTIME_H
9 
10 #include <iostream>
11 #include <sys/timeb.h>
12 #include <stdlib.h>
13 #include <stdio.h>
14 #include <string>
15 #include <sstream>
16 
21 class TPZfTime
22 {
23 
24 public:
25 
27  TPZfTime();
29  ~TPZfTime();
30 
32  std::string ReturnTimeString();
33 
35  double ReturnTimeDouble();
36 
37 private:
39  struct timeb finicio, ffinal;
40 
41 };
42 
43 #endif
~TPZfTime()
Default destructor.
Definition: TPZfTime.cpp:16
Calculate the Times. Utility.
Definition: TPZfTime.h:21
struct timeb finicio ffinal
Initial and final time calculates.
Definition: TPZfTime.h:39
double ReturnTimeDouble()
When called, returns the time since the creation of the object in a double.
Definition: TPZfTime.cpp:35
std::string ReturnTimeString()
When called, returns the time since the creation of the object in a string.
Definition: TPZfTime.cpp:20
TPZfTime()
Start the timer when the object is created.
Definition: TPZfTime.cpp:11