MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / get_walltime

Method get_walltime

src/client/timer.hpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31private:
32 inline double get_walltime()
33 {
34 struct timespec ts;
35
36 clock_gettime(CLOCK_REALTIME, &ts);
37 return static_cast<double>(ts.tv_sec) +
38 static_cast<double>(ts.tv_nsec) * 1.0e-9;
39 }
40
41private:
42 double init_time_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected