MCPcopy Create free account
hub / github.com/cutechess/cutechess / s_nodeString

Function s_nodeString

projects/lib/src/timecontrol.cpp:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34QString s_nodeString(qint64 nodes)
35{
36 if (nodes == 0 || nodes % 1000 != 0)
37 return QString::number(nodes);
38 else if (nodes % 1000000 != 0)
39 return TimeControl::tr("%1 k").arg(nodes / 1000);
40 return TimeControl::tr("%1 M").arg(nodes / 1000000);
41}
42
43} // anonymous namespace
44

Callers 1

toVerboseStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected