How to pause execution of a procedure?

How to pause execution of a procedure?

Ok, this may be a bit weird, but i want to stop execution of a procedure for a given period of time, w/o consuming cpu resources. For example, say I want to poll a file every 5 seconds, I want the procedure to stop for 5 seconds then resume. I have looked, and nothing in ISO Fortran is useful, so I assume that there must be an API call (I'm using CVF6.5a on Win2k). I've looked through the API docs, but I can't find quite what I'm looking for. Any ideas?

Matt.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

If I'm understanding your question right, there's

Fortran:
SLEEP (use dfport)
SLEEPQQ (use dflib)

Win32 API:
Sleep (use kernel32)
SleepEx (use kernel32)

hth,
John

Leave a Comment

Please sign in to add a comment. Not a member? Join today