0

Ok so I am going to be switching to an ubuntu linux machine soon to do all of my coding and I was wondering if anyone has a reference to the function calls you can use with it because I am used to windows programming so now in my code

Sleep(3000);

becomes useless so I need to start finding alternatives. All help is appreciated.

4
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by cam875
1

Don't forget the change of units, otherwise you'll be hibernating rather than sleeping ;)

Votes + Comments
Amen sleep(3000) ain't the same in windows.
0

sleep takes parameter in seconds -- I think there is a usleep that is in milliseconds.

If you stick to standard c++ code there should not be a problem. But if you use a lot of win32 api graphics functions then you are in deep shit. Most of that is comletely different in the *nix world. My advice is to use a portable library, such as wxWidgets or QT.

0

ok thanks for the help I do not use functions in the winapi very often so I should be fine afterall.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.