ticks_to_seconds Function

public pure function ticks_to_seconds(ticks, rate) result(secs)

Convert ticks to seconds using a specified tick rate.

Arguments

Type IntentOptional Attributes Name
integer(kind=int64), intent(in) :: ticks

Tick delta and tick rate.

integer(kind=int64), intent(in) :: rate

Tick delta and tick rate.

Return Value real


Source Code

   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