MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / init

Method init

src/thundersvm/util/log.cpp:1327–1349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1325// SubsecondPrecision
1326
1327 void SubsecondPrecision::init(int width) {
1328 if (width < 1 || width > 6) {
1329 width = base::consts::kDefaultSubsecondPrecision;
1330 }
1331 m_width = width;
1332 switch (m_width) {
1333 case 3:
1334 m_offset = 1000;
1335 break;
1336 case 4:
1337 m_offset = 100;
1338 break;
1339 case 5:
1340 m_offset = 10;
1341 break;
1342 case 6:
1343 m_offset = 1;
1344 break;
1345 default:
1346 m_offset = 1000;
1347 break;
1348 }
1349 }
1350
1351// LogFormat
1352

Callers 2

~PerformanceTrackerMethod · 0.45
checkpointMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected