MCPcopy Create free account
hub / github.com/ElectroZybr/LatticeLab / lastProfileSampleMs

Function lastProfileSampleMs

App/debug/UpdateDebugData.cpp:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15namespace {
16 double lastProfileSampleMs(const Profiler& profiler, std::initializer_list<const char*> names) {
17 for (const char* name : names) {
18 const double ms = profiler.lastActiveMs(name);
19 if (ms > 0.0) {
20 return ms;
21 }
22 }
23 return 0.0;
24 }
25}
26
27void updateAtomSelectionDebug(const DebugViews& debugViews, const Lattice::Simulation& simulation) {

Callers 1

updateSimulationDebugFunction · 0.85

Calls 1

lastActiveMsMethod · 0.80

Tested by

no test coverage detected