How to wait some time to execute something (newbie question)
Hi all,
I'm a java programmer and new to C development on linux. I need to write a C code that wait some time to execute a function. In java it's as simple as follows:
Code:
//some code
Thread.sleep(1000); //waits 1000 miliseconds and continues
//some code
In C on linux I know that pthread.h has thread manipulation functions, but I can't find a way to do the program execution to stop for some time and then continue.
Thank you very much,
Joao Paulo