Delay for c++
h
Baconman321

Does anyone know a repl.it compatible delay function for c++? I would like to use it to make the computer slow down, and make it easier for calculations. Thanks!

You are viewing a single comment. View All
mat1

You can sleep in c++ with unistd.h and the sleep function. For example, here's a program that outputs foo, waits a second, and then prints bar: