MCPcopy Create free account
hub / github.com/ariccio/altWinDirStat / UpdateStatistics

Method UpdateStatistics

Reference code/osImageTool/OsImageCopier.cpp:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void OsImageCopier::UpdateStatistics(DWORD t0, DWORD t1, DWORD offset)
21{
22 m_dlg->SetPercentage(100.0*(offset-OSSTART)/(OSEND-OSSTART));
23
24 double bps= 1000.0*(offset-OSSTART)/(t1-t0);
25 m_dlg->SetSpeed(bps);
26 m_dlg->SetRemainingTime((long)((OSEND-offset)/bps));
27}
28
29bool OsImageCopier::copy(OsImageReader *reader, OsImageWriter *writer)
30{

Callers

nothing calls this directly

Calls 3

SetPercentageMethod · 0.80
SetSpeedMethod · 0.80
SetRemainingTimeMethod · 0.80

Tested by

no test coverage detected