Re-Read your PBP manual SLEEP section VERY VERY carefully.
Then compare that chapter to your code and you will have your answer.
I believe that the thread referenced in post #1 is flawed in one particular aspect (it also contain the phrase 'this example has not been tested'), and it is this aspect in which yours is also flawed...
Bookmarks