We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 345b137 commit 11e9a65Copy full SHA for 11e9a65
1 file changed
attachments/simple_engine/debug_system.h
@@ -195,6 +195,8 @@ class DebugSystem {
195
* @param name The name of the measurement.
196
*/
197
void StopMeasurement(const std::string& name) {
198
+ std::lock_guard<std::mutex> lock(mutex);
199
+
200
auto now = std::chrono::high_resolution_clock::now();
201
auto it = measurements.find(name);
202
0 commit comments