MCPcopy Create free account
hub / github.com/ZDoom/Raze / Format

Method Format

source/common/objects/dobjgc.cpp:817–831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

815//==========================================================================
816
817void FStepStats::Format(FString &out)
818{
819 // Because everything in the default green is hard to distinguish,
820 // each stage has its own color.
821 for (int i = GC::GCS_Propagate; i < GC::GCS_Done; ++i)
822 {
823 int count = Count[i];
824 double time = Clock[i].TimeMS();
825 out.AppendFormat(TEXTCOLOR_ESCAPESTR "%c[%c%6zuK %4d*%.2fms]",
826 "-NKB"[i], /* Color codes */
827 "-PSD"[i], /* Stage prefixes: (P)ropagate, (S)weep, (D)estroy */
828 (BytesCovered[i] + 1023) >> 10, count, count != 0 ? time / count : time);
829 }
830 out << TEXTCOLOR_GREEN;
831}
832
833//==========================================================================
834//

Callers 15

S_PlayRRMusicFunction · 0.45
PlaySongFunction · 0.45
levelLoadDefaultsFunction · 0.45
levelTryPlayMusicFunction · 0.45
CCMDFunction · 0.45
G_AddExternalSearchPathsFunction · 0.45
CompilePropertiesMethod · 0.45
CompileFlagDefsMethod · 0.45
STAT_UpdateFunction · 0.45
NoiseDebugFunction · 0.45
opennextfileFunction · 0.45

Calls 2

TimeMSMethod · 0.80
AppendFormatMethod · 0.80

Tested by 1

M_GetConfigPathFunction · 0.36