OS-backed sleep for approximately s seconds.
This routine delegates to the C shim fpm_watch_sleep_seconds, which
performs platform-native sleeping (Windows Sleep, POSIX nanosleep).
The fpm_environment OS check is retained for clarity and future
platform-specific extensions, but both branches call the same shim.
s: requested duration in seconds. Non-positive values return immediately.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real, | intent(in) | :: | s |
subroutine sleep_os(s) real, intent(in) :: s if (get_os_type() == OS_WINDOWS) then call fpm_watch_sleep_seconds(real(s, c_double)) else call fpm_watch_sleep_seconds(real(s, c_double)) end if end subroutine sleep_os