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

Method getCoreNumber

Timer.cpp:157–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157int Timer::getCoreNumber() {
158
159#ifdef WIN64
160 SYSTEM_INFO sysinfo;
161 GetSystemInfo(&sysinfo);
162 return sysinfo.dwNumberOfProcessors;
163#else
164 // TODO
165 return 1;
166#endif
167
168}
169
170void Timer::SleepMillis(uint32_t millis) {
171

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected