MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / beginIo

Method beginIo

common/script/scriptconsole.cpp:217–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void ScriptConsole::beginIo(std::string label, long long total)
218{
219 std::lock_guard<std::mutex> lock(mMutex);
220 mIo = Layer{};
221 mIo.label = std::move(label);
222 mIo.total = total;
223 mIo.active = true;
224 mIo.bytes = true;
225 mIoSlot = true;
226 mIoRateDone = 0;
227 mIoRateAt = std::chrono::steady_clock::now();
228}
229
230void ScriptConsole::sampleIoRate(void)
231{

Callers 3

uploadProgressFunction · 0.80
zipDirFunction · 0.80
unzipToFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected