0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-26 08:01:51 +08:00

Amend last commit

This commit is contained in:
Victor Zarubkin 2017-04-02 14:25:46 +03:00
parent a2b62613a2
commit edcf23e268

View File

@ -19,7 +19,7 @@ int MODELLING_STEPS = 1500;
int RENDER_STEPS = 1500;
int RESOURCE_LOADING_COUNT = 50;
#define SAMPLE_NETWORK_TEST
//#define SAMPLE_NETWORK_TEST
void localSleep(int magic=200000)
{
@ -227,7 +227,7 @@ int main(int argc, char* argv[])
cv.notify_all();
std::atomic_bool stop = ATOMIC_VAR_INIT(false);
auto ttt = std::thread([&stop]()
auto frame_time_printer_thread = std::thread([&stop]()
{
while (!stop.load(std::memory_order_acquire))
{
@ -243,7 +243,7 @@ int main(int argc, char* argv[])
for(auto& t : threads)
t.join();
ttt.join();
frame_time_printer_thread.join();
auto end = std::chrono::system_clock::now();
auto elapsed =