MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / GetSelectionInfoText

Method GetSelectionInfoText

DebugView++/MainFrame.cpp:351–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351std::wstring CMainFrame::GetSelectionInfoText(const std::wstring& label, const SelectionInfo& selection) const
352{
353 if (selection.count == 0)
354 return std::wstring();
355
356 if (selection.count == 1)
357 return label + L": " + FormatDateTime(m_logFile[selection.beginLine].systemTime);
358
359 double dt = m_logFile[selection.endLine].time - m_logFile[selection.beginLine].time;
360 return wstringbuilder() << label << L": " << FormatDuration(dt) << L" (" << selection.count << " lines)";
361}
362
363SelectionInfo CMainFrame::GetLogFileRange() const
364{

Callers

nothing calls this directly

Calls 2

FormatDateTimeFunction · 0.85
FormatDurationFunction · 0.85

Tested by

no test coverage detected