MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / GetProgressString

Method GetProgressString

Source/WaveRenderer.cpp:98–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98std::string CWaveRendererTick::GetProgressString() const {
99 return "Time: " + conv::time_from_uint(static_cast<unsigned>(m_iRenderTick / m_fFrameRate)) +
100 " / " + conv::time_from_uint(static_cast<unsigned>(m_iTicksToRender / m_fFrameRate)) +
101 " (" + conv::from_int(GetProgressPercent()) + "% done)";
102}
103
104int CWaveRendererTick::GetProgressPercent() const {
105 return Finished() ? 100 : m_iRenderTick * 100 / m_iTicksToRender;

Callers 1

OnTimerMethod · 0.80

Calls 2

time_from_uintFunction · 0.85
from_intFunction · 0.85

Tested by

no test coverage detected