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

Function cpuSecond

code/Chapter10/freshman.h:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40#endif
41double cpuSecond()
42{
43 struct timeval tp;
44 gettimeofday(&tp,NULL);
45 return((double)tp.tv_sec+(double)tp.tv_usec*1e-6);
46
47}
48void initialData(float* ip,int size)
49{
50 time_t t;

Callers

nothing calls this directly

Calls 1

gettimeofdayFunction · 0.85

Tested by

no test coverage detected