MCPcopy Create free account
hub / github.com/OriginQ/QPanda-2 / init

Method init

Extensions/PilotOSMachine/easylogging++.cpp:1407–1429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1405// SubsecondPrecision
1406
1407void SubsecondPrecision::init(int width) {
1408 if (width < 1 || width > 6) {
1409 width = base::consts::kDefaultSubsecondPrecision;
1410 }
1411 m_width = width;
1412 switch (m_width) {
1413 case 3:
1414 m_offset = 1000;
1415 break;
1416 case 4:
1417 m_offset = 100;
1418 break;
1419 case 5:
1420 m_offset = 10;
1421 break;
1422 case 6:
1423 m_offset = 1;
1424 break;
1425 default:
1426 m_offset = 1000;
1427 break;
1428 }
1429}
1430
1431// LogFormat
1432

Callers 2

~PerformanceTrackerMethod · 0.45
checkpointMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected