Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

SLEEPQQ

andrew_4619
Honored Contributor III
577 Views

I have always used sleepqq function with 'use ifport as per the help file'. So how does tthe following resolve istelf, is there a sleepqq intrinsic/extensionm buildt into ifort now?

[fortran]program Console1

implicit none

call sleepqq(1)
print *, 'Hello World'
end program Console1[/fortran]

0 Kudos
2 Replies
TimP
Honored Contributor III
577 Views

Your call happens to match the run-time library call.  The advantage of 'use ifport' would be compile-time checking, and to take care of the possibility that the internal details might change in the future.

0 Kudos
andrew_4619
Honored Contributor III
577 Views

Thanks, I decided to create my own wrapper so as not to have ifport all over the place, and as it is definatelty a non-os portable windows app opted to use the sdk sleep function as the basis. I guess sleepqq is a wrapper for a clib routine. 

0 Kudos
Reply