10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-07 22:53:52 +01:00
QuantumPackage/src/utils/c_functions.f90

22 lines
378 B
Fortran
Raw Normal View History

2019-07-09 13:40:06 +02:00
module c_functions
use iso_c_binding
interface
2019-07-09 17:33:44 +02:00
subroutine usleep_c(us) bind (C,name="usleep_c")
2019-07-09 13:40:06 +02:00
use iso_c_binding
integer(c_int), value :: us
end subroutine usleep_c
end interface
end module
subroutine usleep(us)
use c_functions
use iso_c_binding
implicit none
integer, intent(in) :: us
2019-07-09 17:18:05 +02:00
integer(c_int) :: u
u = us
call usleep_c(u)
2019-07-09 13:40:06 +02:00
end