<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>time-provider on Grant Winney</title><link>https://grantwinney.com/tags/time-provider/</link><description>Recent content in time-provider on Grant Winney</description><generator>Hugo -- 0.148.2</generator><language>en</language><lastBuildDate>Sat, 11 Oct 2025 18:25:31 -0400</lastBuildDate><atom:link href="https://grantwinney.com/tags/time-provider/index.xml" rel="self" type="application/rss+xml"/><item><title>Using TimeProvider and FakeTimeProvider in WinForms</title><link>https://grantwinney.com/using-timeprovider-and-faketimeprovider-in-winforms/</link><pubDate>Mon, 05 Feb 2024 05:07:51 +0000</pubDate><guid>https://grantwinney.com/using-timeprovider-and-faketimeprovider-in-winforms/</guid><description>Testing .NET code involving time has always been a pain, but the TimeProvider class (backported to the .NET Framework) gives us awesome new tools.</description></item><item><title>How to use (and test) TimeProvider timers in .NET</title><link>https://grantwinney.com/how-to-use-timeprovider-and-faketimeprovider-to-test-timers/</link><pubDate>Thu, 11 Jan 2024 04:34:20 +0000</pubDate><guid>https://grantwinney.com/how-to-use-timeprovider-and-faketimeprovider-to-test-timers/</guid><description>Testing timers in C# is difficult, but .NET 8 (C# 12) adds an abstract TimeProvider class that makes it easier. Let&amp;rsquo;s take a closer look.</description></item><item><title>How to use TimeProvider and FakeTimeProvider (time abstraction in .NET)</title><link>https://grantwinney.com/how-to-use-timeprovider-and-faketimeprovider/</link><pubDate>Sun, 07 Jan 2024 04:14:00 +0000</pubDate><guid>https://grantwinney.com/how-to-use-timeprovider-and-faketimeprovider/</guid><description>Testing time in C# is difficult, but .NET 8 (C# 12) adds an abstract TimeProvider class that makes it easier. Let&amp;rsquo;s take a closer look.</description></item></channel></rss>