MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / ElapsedMs

Function ElapsedMs

src/tools/SpeedBenchmark.cpp:47–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45using Clock = std::chrono::steady_clock;
46
47static double ElapsedMs(Clock::time_point a, Clock::time_point b) {
48 return std::chrono::duration<double, std::milli>(b - a).count();
49}
50
51static std::string ReadFile(const std::string& path) {
52 std::ifstream f(path, std::ios::binary);

Callers 1

mainFunction · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected