Browse Source

Fixed compilation

Paul-Louis Ageneau 5 năm trước cách đây
mục cha
commit
5b2c0cbc08
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      test/benchmark.cpp

+ 4 - 1
test/benchmark.cpp

@@ -93,7 +93,10 @@ size_t benchmark(milliseconds duration) {
 	binary messageData(messageSize);
 	fill(messageData.begin(), messageData.end(), byte(0xFF));
 	atomic<size_t> receivedSize = 0;
-	std::atomic<steady_clock::time_point> startTime, openTime, receivedTime, endTime;
+	std::atomic<steady_clock::time_point> startTime{steady_clock::now()};
+	std::atomic<steady_clock::time_point> openTime{steady_clock::now()};
+	std::atomic<steady_clock::time_point> receivedTime{steady_clock::now()};
+	std::atomic<steady_clock::time_point> endTime{steady_clock::now()};
 
 	shared_ptr<DataChannel> dc2;
 	pc2->onDataChannel([&dc2, &receivedSize, &receivedTime, &endTime](shared_ptr<DataChannel> dc) {