MCPcopy Create free account
hub / github.com/NanoComp/meep / timing_data_vector

Function timing_data_vector

src/time.cpp:59–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57};
58
59std::vector<double> timing_data_vector(const time_sink_to_duration_map &timers) {
60 std::vector<double> ret;
61 for (const auto &desc_ts : DescriptionByTimeSink) {
62 auto it = timers.find(desc_ts.first);
63 ret.push_back((it != timers.end()) ? it->second : 0.);
64 }
65 return ret;
66}
67
68std::vector<double> timing_data_vector_from_all(const time_sink_to_duration_map &timers) {
69 std::vector<double> time_spent_vector = timing_data_vector(timers);

Callers 2

print_timesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected