mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-26 16:11:02 +08:00
Amend last commit
This commit is contained in:
parent
a2b62613a2
commit
edcf23e268
@ -19,7 +19,7 @@ int MODELLING_STEPS = 1500;
|
|||||||
int RENDER_STEPS = 1500;
|
int RENDER_STEPS = 1500;
|
||||||
int RESOURCE_LOADING_COUNT = 50;
|
int RESOURCE_LOADING_COUNT = 50;
|
||||||
|
|
||||||
#define SAMPLE_NETWORK_TEST
|
//#define SAMPLE_NETWORK_TEST
|
||||||
|
|
||||||
void localSleep(int magic=200000)
|
void localSleep(int magic=200000)
|
||||||
{
|
{
|
||||||
@ -227,7 +227,7 @@ int main(int argc, char* argv[])
|
|||||||
cv.notify_all();
|
cv.notify_all();
|
||||||
|
|
||||||
std::atomic_bool stop = ATOMIC_VAR_INIT(false);
|
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))
|
while (!stop.load(std::memory_order_acquire))
|
||||||
{
|
{
|
||||||
@ -243,7 +243,7 @@ int main(int argc, char* argv[])
|
|||||||
for(auto& t : threads)
|
for(auto& t : threads)
|
||||||
t.join();
|
t.join();
|
||||||
|
|
||||||
ttt.join();
|
frame_time_printer_thread.join();
|
||||||
|
|
||||||
auto end = std::chrono::system_clock::now();
|
auto end = std::chrono::system_clock::now();
|
||||||
auto elapsed =
|
auto elapsed =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user