Software Archive
Read-only legacy content
17061 Discussions

How to pause execution of a procedure?

Intel_C_Intel
Employee
550 Views
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.
0 Kudos
1 Reply
Intel_C_Intel
Employee
550 Views
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
0 Kudos
Reply