MCPcopy Create free account
hub / github.com/TASEmulators/fceux / updateCurrent

Method updateCurrent

src/drivers/Qt/ConsoleDebugger.cpp:8112–8144  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

8110}
8111//----------------------------------------------------------------------------
8112void DebugBreakOnDialog::updateCurrent(void)
8113{
8114 char stmp[128];
8115
8116 if ( type )
8117 {
8118 totalCount = total_instructions;
8119 deltaCount = delta_instructions;
8120
8121 sprintf(stmp, "Current Instruction Count: %10llu (+%llu)", totalCount, deltaCount);
8122 currLbl->setText( tr(stmp) );
8123
8124 }
8125 else
8126 {
8127 totalCount = timestampbase + (uint64)timestamp - total_cycles_base;
8128 deltaCount = timestampbase + (uint64)timestamp - delta_cycles_base;
8129
8130 if (totalCount < 0) // sanity check
8131 {
8132 ResetDebugStatisticsCounters();
8133 totalCount = 0;
8134 }
8135 if (deltaCount < 0) // sanity check
8136 {
8137 ResetDebugStatisticsCounters();
8138 deltaCount = 0;
8139 }
8140 sprintf(stmp, "Current Cycle Count: %10llu (+%llu)", totalCount, deltaCount);
8141 currLbl->setText( tr(stmp) );
8142 }
8143
8144}
8145//----------------------------------------------------------------------------
8146void DebugBreakOnDialog::resetCounters(void)
8147{

Callers

nothing calls this directly

Calls 3

setTextMethod · 0.80
trFunction · 0.50

Tested by

no test coverage detected