Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • TimeInterval is a typealias for Double, so you can just do TimeInterval(index) * TimeInterval(0.05) Commented Jun 29, 2020 at 15:23
  • @Alexander-ReinstateMonica You are right, I updated the answer Commented Jun 29, 2020 at 15:25
  • This did not help at all. In fact it made it actually worse (difficult to say that after just compiling once - but it ended up as 138 ms) Commented Jun 29, 2020 at 16:02
  • @Groot What about var delay: TimeInterval = TimeInterval(index) * 0.05 as TimeInterval? Commented Jun 29, 2020 at 16:16
  • No luck. 122ms @Alexander-ReinstateMonica Commented Jun 29, 2020 at 16:24