MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / clockTime

Class clockTime

src/OSspecific/POSIX/clockTime/clockTime.H:50–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48\*---------------------------------------------------------------------------*/
49
50class clockTime
51{
52 // Private data
53
54 //- Time structure used
55 typedef struct timeval timeType;
56
57 timeType startTime_;
58
59 mutable timeType lastTime_;
60 mutable timeType newTime_;
61
62 // Private Member Functions
63
64 //- Retrieve the current time values from the system
65 static void getTime(timeType&);
66
67 //- Difference between two times
68 static double timeDifference(const timeType& beg, const timeType& end);
69
70
71public:
72
73 // Constructors
74
75 //- Construct with the current clock time
76 clockTime();
77
78
79 // Member Functions
80
81 //- Return time (in seconds) from the start
82 double elapsedTime() const;
83
84 //- Return time (in seconds) since last call to timeIncrement()
85 double timeIncrement() const;
86};
87
88
89// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Callers 5

clockTime.CFile · 0.85
endFunction · 0.85
parseFunction · 0.85
clock.CFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected