MCPcopy Create free account
hub / github.com/JeanLucPons/VanitySearch / get_tick

Method get_tick

Timer.cpp:50–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50double Timer::get_tick() {
51
52#ifdef WIN64
53 LARGE_INTEGER t, dt;
54 QueryPerformanceCounter(&t);
55 dt.QuadPart = t.QuadPart - perfTickStart.QuadPart;
56 return (double)(dt.QuadPart) / perfTicksPerSec;
57#else
58 struct timeval tv;
59 gettimeofday(&tv, NULL);
60 return (double)(tv.tv_sec - tickStart) + (double)tv.tv_usec / 1e6;
61#endif
62
63}
64
65std::string Timer::getSeed(int size) {
66

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected