<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/swift-s-native-clocks-are-very-inefficient-wade-tregaskis-xcsj3wh6c" -->

---
title: Swift’s native Clocks are very inefficient – Wade Tregaskis
description: Swift&#x27;s native Clocks, such as ContinuousClock and SuspendingClock, are inefficient for frequent time and timing operations.
canonical: https://daily.dev/posts/swift-s-native-clocks-are-very-inefficient-wade-tregaskis-xcsj3wh6c
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Swift’s native Clocks are very inefficient – Wade Tregaskis | daily.dev
og:description: Swift&#x27;s native Clocks, such as ContinuousClock and SuspendingClock, are inefficient for frequent time and timing operations.
og:url: https://daily.dev/posts/swift-s-native-clocks-are-very-inefficient-wade-tregaskis-xcsj3wh6c
og:image: https://api.daily.dev/og/posts/xCSj3WH6C.png
og:image:alt: Swift’s native Clocks are very inefficient – Wade Tregaskis
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Swift’s native Clocks are very inefficient – Wade Tregaskis

**[Lobsters](https://daily.dev/sources/lobsters)** · 4 min read · 1 upvotes · 0 comments

## Summary

Swift's native Clocks, such as ContinuousClock and SuspendingClock, are inefficient for frequent time and timing operations.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://wadetregaskis.com/swifts-native-clocks-are-very-inefficient/>

---

Tags: [#performance](https://daily.dev/tags/performance), [#swift](https://daily.dev/tags/swift)

[View this post on daily.dev](https://daily.dev/posts/swift-s-native-clocks-are-very-inefficient-wade-tregaskis-xcsj3wh6c)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Swift’s native Clocks are very inefficient – Wade Tregaskis","url":"https://daily.dev/posts/swift-s-native-clocks-are-very-inefficient-wade-tregaskis-xcsj3wh6c","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/swift-s-native-clocks-are-very-inefficient-wade-tregaskis-xcsj3wh6c"},"datePublished":"2024-05-05T05:43:43.615Z","dateModified":"2024-05-09T08:39:06.345Z","description":"Swift's native Clocks, such as ContinuousClock and SuspendingClock, are inefficient for frequent time and timing operations.","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/65f937b684550518b565cdc54f19fdf8?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/65f937b684550518b565cdc54f19fdf8?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/swift-s-native-clocks-are-very-inefficient-wade-tregaskis-xcsj3wh6c","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"performance,swift","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"Swift’s native Clocks are very inefficient – Wade Tregaskis"}]}
```

