MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / GetPerformanceCounter

Function GetPerformanceCounter

src/random.cpp:25–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include <openssl/rand.h>
24
25static inline int64_t GetPerformanceCounter()
26{
27 int64_t nCounter = 0;
28#ifdef WIN32
29 QueryPerformanceCounter((LARGE_INTEGER*)&nCounter);
30#else
31 timeval t;
32 gettimeofday(&t, NULL);
33 nCounter = (int64_t)(t.tv_sec * 1000000 + t.tv_usec);
34#endif
35 return nCounter;
36}
37
38void RandAddSeed()
39{

Callers 1

RandAddSeedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected