MCPcopy Create free account
hub / github.com/AdvancedCompiler/AdvancedCompiler / seconds

Function seconds

code/Chapter10/common.h:66–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66inline double seconds()
67{
68 struct timeval tp;
69 struct timezone tzp;
70 int i = gettimeofday(&tp, &tzp);
71 return ((double)tp.tv_sec + (double)tp.tv_usec * 1.e-6);
72}
73
74#endif // _COMMON_H

Callers

nothing calls this directly

Calls 1

gettimeofdayFunction · 0.85

Tested by

no test coverage detected