Convert ticks to seconds using a specified tick rate.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int64), | intent(in) | :: | ticks |
Tick delta and tick rate. |
||
| integer(kind=int64), | intent(in) | :: | rate |
Tick delta and tick rate. |
pure real function ticks_to_seconds(ticks, rate) result(secs) integer(int64), intent(in) :: ticks, rate !! Tick delta and tick rate. secs = real(ticks) / real(rate) end function ticks_to_seconds