MCPcopy Create free account
hub / github.com/dds-bridge/dds / SetNames

Method SetNames

library/src/system/timer_group.cpp:38–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38void TimerGroup::SetNames(const string& baseName)
39{
40 string st;
41 if (baseName == "AB")
42 {
43 // Special format emphasizing the card number within the trick.
44 for (unsigned i = 0; i < timers.size(); i++)
45 {
46 st = baseName + to_string(i % 4) + " " + to_string(i);
47 timers[i].SetName(st);
48 }
49 }
50 else
51 {
52 for (unsigned i = 0; i < timers.size(); i++)
53 {
54 st = baseName + to_string(i);
55 timers[i].SetName(st);
56 }
57 }
58 bname = baseName;
59}
60
61
62void TimerGroup::Start(const unsigned no)

Callers 2

ResetMethod · 0.45
PrintStatsMethod · 0.45

Calls 1

SetNameMethod · 0.80

Tested by

no test coverage detected