MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / clearLog

Method clearLog

plugins/webadmin/logs.cpp:129–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void LogLoop::clearLog(void) {
130 messages.clear();
131
132 bz_Time now;
133
134 LogMessage message;
135 bz_getUTCtime(&now);
136 message.time = printTime(&now);
137
138 message.message = "Log cleared";
139 messages.push_back(message);
140}
141
142void LogLoop::process(bz_EventData* eventData) {
143 if (!eventData) {

Callers 1

processMethod · 0.80

Calls 4

bz_getUTCtimeFunction · 0.85
printTimeFunction · 0.85
clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected