MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / OnUpdateCopySpeed

Method OnUpdateCopySpeed

FastCopy/RobocopyViewModel.cpp:187–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 m_status = Status::Cancel;
186 }
187 void RobocopyViewModel::OnUpdateCopySpeed(ProcessIoCounter::IOCounterDiff diff)
188 {
189 m_bytesPerSec = ReadableUnitConverter::Speed::BytesPerSec(diff.read, diff.duration);
190 //m_copiedBytes += GetTotal().read;
191 Global::UIThread.TryEnqueue([this] {
192 raisePropertyChange(L"SpeedText");
193 raisePropertyChange(L"Speed");
194 });
195 }
196 winrt::Windows::Foundation::IReference<bool> RobocopyViewModel::UseSource()
197 {
198 if (m_useSourceCount == 0)

Callers 1

StartMethod · 0.80

Calls 1

TryEnqueueMethod · 0.80

Tested by

no test coverage detected