<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKitTest",
  "identifier" : "/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "StoreKit Test",
      "StoreKitTest"
    ],
    "preciseIdentifier" : "c:@E@SKTestTimeRate"
  },
  "title" : "SKTestSession.TimeRate"
}
-->

# SKTestSession.TimeRate

The values for rates of time passing in the test environment.

```
enum TimeRate
```

## Overview

The time rates that affect subscription renewals in the test environment match those in the sandbox environment with these exceptions:

- Only the test environment supports the [`SKTestSession.TimeRate.monthlyRenewalEveryThirtySeconds`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/monthlyRenewalEveryThirtySeconds) time rate.
- Only the test environment supports the fixed time rate options: [`SKTestSession.TimeRate.oneRenewalEveryFifteenMinutes`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/oneRenewalEveryFifteenMinutes), [`SKTestSession.TimeRate.oneRenewalEveryFiveMinutes`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/oneRenewalEveryFiveMinutes), [`SKTestSession.TimeRate.oneRenewalEveryMinute`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/oneRenewalEveryMinute), [`SKTestSession.TimeRate.oneRenewalEveryThirtySeconds`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/oneRenewalEveryThirtySeconds), [`SKTestSession.TimeRate.oneRenewalEveryTenSeconds`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/oneRenewalEveryTenSeconds), and [`SKTestSession.TimeRate.oneRenewalEveryTwoSeconds`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/oneRenewalEveryTwoSeconds).
- Only the sandbox environment supports a monthly renewal in 3 minutes.

For more information about time rates in the sandbox environment, see [Test in-app purchases](https://developer.apple.com/help/app-store-connect/test-in-app-purchases-main/test-in-app-purchases).

The time rates also affect the lengths of the billing retry period and the billing grace period in the testing environment. See the individual enumeration cases for the actual time values of the subscription renewal rates, billing retry periods, and billing grace periods.

## Topics

### Fixed time rates for subscription renewals

[`SKTestSession.TimeRate.oneRenewalEveryFifteenMinutes`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/oneRenewalEveryFifteenMinutes)

A rate of time in the test environment in which subscriptions of any time length renew every 15 minutes.

[`SKTestSession.TimeRate.oneRenewalEveryFiveMinutes`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/oneRenewalEveryFiveMinutes)

A rate of time in the test environment in which subscriptions of any time length renew every 5 minutes.

[`SKTestSession.TimeRate.oneRenewalEveryMinute`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/oneRenewalEveryMinute)

A rate of time in the test environment in which subscriptions of any time length renew every minute.

[`SKTestSession.TimeRate.oneRenewalEveryThirtySeconds`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/oneRenewalEveryThirtySeconds)

A rate of time in the test environment in which subscriptions of any time length renew every 30 seconds.

[`SKTestSession.TimeRate.oneRenewalEveryTenSeconds`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/oneRenewalEveryTenSeconds)

A rate of time in the test environment in which subscriptions of any time length renew every 10 seconds.

[`SKTestSession.TimeRate.oneRenewalEveryTwoSeconds`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/oneRenewalEveryTwoSeconds)

A rate of time in the test environment in which subscriptions of any time length renew every 2 seconds.

### Scaled time rates for subscription renewals

[`SKTestSession.TimeRate.realTime`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/realTime)

A rate of time in which the test environment runs in real time.

[`SKTestSession.TimeRate.monthlyRenewalEveryHour`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/monthlyRenewalEveryHour)

A rate of time in the test environment in which monthly subscriptions renew every hour.

[`SKTestSession.TimeRate.monthlyRenewalEveryThirtyMinutes`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/monthlyRenewalEveryThirtyMinutes)

A rate of time in the test environment in which monthly subscriptions renew every 30 minutes.

[`SKTestSession.TimeRate.monthlyRenewalEveryFifteenMinutes`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/monthlyRenewalEveryFifteenMinutes)

A rate of time in the test environment in which monthly subscriptions renew every 15 minutes.

[`SKTestSession.TimeRate.monthlyRenewalEveryFiveMinutes`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/monthlyRenewalEveryFiveMinutes)

A rate of time in the test environment in which monthly subscriptions renew every 5 minutes.

[`SKTestSession.TimeRate.monthlyRenewalEveryThirtySeconds`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/monthlyRenewalEveryThirtySeconds)

A rate of time in the test environment in which monthly subscriptions renew every 30 seconds.

### Deprecated

[`SKTestSession.TimeRate.oneHourIsOneDay`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/oneHourIsOneDay)

A rate of time in which 1 hour in the test environment represents one day.

[`SKTestSession.TimeRate.thirtyMinutesIsOneDay`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/thirtyMinutesIsOneDay)

A rate of time in which 30 minutes in the test environment represents one day.

[`SKTestSession.TimeRate.fiveMinutesIsOneDay`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/fiveMinutesIsOneDay)

A rate of time in which 5 minutes in the test environment represents one day.

[`SKTestSession.TimeRate.oneMinuteIsOneDay`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/oneMinuteIsOneDay)

A rate of time in which 1 minute in the test environment represents one day.

[`SKTestSession.TimeRate.thirtySecondsIsOneDay`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/thirtySecondsIsOneDay)

A rate of time in which 30 seconds in the test environment represents one day.

[`SKTestSession.TimeRate.oneSecondIsOneDay`](/documentation/StoreKitTest/SKTestSession/TimeRate-swift.enum/oneSecondIsOneDay)

A rate of time in which 1 second in the test environment represents one day.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)