MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / Convert

Function Convert

Tests/CommandLineTests.cpp:9–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8template<typename T, typename U> T Convert(U, LARGE_INTEGER const& freq);
9template<> uint64_t Convert(char const* u, LARGE_INTEGER const&) { return strtoull(u, nullptr, 10); }
10template<> double Convert(char const* u, LARGE_INTEGER const&) { return strtod(u, nullptr); }
11template<> uint64_t Convert(uint64_t u, LARGE_INTEGER const&) { return u; }
12template<> double Convert(uint64_t u, LARGE_INTEGER const& freq) { return (double) u / freq.QuadPart; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected