| 349 | } |
| 350 | |
| 351 | std::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 | |
| 363 | SelectionInfo CMainFrame::GetLogFileRange() const |
| 364 | { |
nothing calls this directly
no test coverage detected