L
L
lightalex2014-12-19 22:26:13
C++ / C#
lightalex, 2014-12-19 22:26:13

How to delay the execution of a C++ program in Xcode?

How to delay the execution of a C++ program in Xcode?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Armenian Radio, 2014-12-19
@lightalex

#include <unistd.h>
sleep(100); //задержка 100 секунд
usleep(100); //задержка 100 микросекунд. В одной секунде 1'000'000  микросекунд

D
Don Kaban, 2014-12-20
@donkaban

std::this_thread::sleep_for(...)
std::this_thread::sleep_until(...)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question