From 18f593143951944f1d21f451c0630d99581944c3 Mon Sep 17 00:00:00 2001 From: Jeff Handley Date: Wed, 26 May 2021 22:00:23 -0700 Subject: [PATCH] Use Stopwatch.StartNew() in ImageAnimator (#53330) --- .../System.Drawing.Common/src/System/Drawing/ImageAnimator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/ImageAnimator.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/ImageAnimator.cs index eb3fb8e..49ce7c0 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/ImageAnimator.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/ImageAnimator.cs @@ -382,8 +382,8 @@ namespace System.Drawing private static void AnimateImages() { Debug.Assert(s_imageInfoList != null, "Null images list"); - Stopwatch stopwatch = new Stopwatch(); - stopwatch.Start(); + + Stopwatch stopwatch = Stopwatch.StartNew(); while (true) { -- 2.7.4