MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / getCPU

Method getCPU

SRC/utility/Timer.cpp:130–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130double
131Timer::getCPU(void) const
132{
133#ifdef TIMER_USE_MPIWTIME
134 return 0;
135#else //Not TIMER_USE_MPIWTIME
136#ifdef _WIN32
137 // fill in later
138 return 0.0;
139#else // Not _WIN32
140 long clktck = CLK_TCK;
141 double CPU = (tmsend.tms_utime - tmsstart.tms_utime)/(double) clktck;
142 return CPU;
143#endif //_WIN32
144#endif //TIMER_USE_MPIWTIME
145}
146
147int
148Timer::getNumPageFaults(void) const

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected