<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://performiq.com/kb/index.php?action=history&amp;feed=atom&amp;title=Using_Timers_in_Dot.NET</id>
	<title>Using Timers in Dot.NET - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://performiq.com/kb/index.php?action=history&amp;feed=atom&amp;title=Using_Timers_in_Dot.NET"/>
	<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=Using_Timers_in_Dot.NET&amp;action=history"/>
	<updated>2026-05-18T22:05:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://performiq.com/kb/index.php?title=Using_Timers_in_Dot.NET&amp;diff=5135&amp;oldid=prev</id>
		<title>PeterHarding at 10:26, 16 October 2021</title>
		<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=Using_Timers_in_Dot.NET&amp;diff=5135&amp;oldid=prev"/>
		<updated>2021-10-16T10:26:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:26, 16 October 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l60&quot;&gt;Line 60:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 60:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:C Sharp]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Dot.NET]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Dot.NET]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Microsoft]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Microsoft]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>PeterHarding</name></author>
	</entry>
	<entry>
		<id>https://performiq.com/kb/index.php?title=Using_Timers_in_Dot.NET&amp;diff=3351&amp;oldid=prev</id>
		<title>PeterHarding: Created page with &#039;&lt;pre&gt; using System; using System.Diagnostics; using System.Net;  class Program {     const int _max = 5;     static void Main(string[] args)     {         try         {          ...&#039;</title>
		<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=Using_Timers_in_Dot.NET&amp;diff=3351&amp;oldid=prev"/>
		<updated>2011-01-30T07:58:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;&amp;lt;pre&amp;gt; using System; using System.Diagnostics; using System.Net;  class Program {     const int _max = 5;     static void Main(string[] args)     {         try         {          ...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Diagnostics;&lt;br /&gt;
using System.Net;&lt;br /&gt;
&lt;br /&gt;
class Program&lt;br /&gt;
{&lt;br /&gt;
    const int _max = 5;&lt;br /&gt;
    static void Main(string[] args)&lt;br /&gt;
    {&lt;br /&gt;
        try&lt;br /&gt;
        {&lt;br /&gt;
            // Get url.&lt;br /&gt;
            string url = args[0];&lt;br /&gt;
&lt;br /&gt;
            // Report url.&lt;br /&gt;
            Console.ForegroundColor = ConsoleColor.White;&lt;br /&gt;
            Console.WriteLine(&amp;quot;... PageTimeTest: times loads of web page over network&amp;quot;);&lt;br /&gt;
            Console.ResetColor();&lt;br /&gt;
            Console.WriteLine(&amp;quot;Testing: {0}&amp;quot;, url);&lt;br /&gt;
&lt;br /&gt;
            // Fetch page.&lt;br /&gt;
            using (WebClient client = new WebClient())&lt;br /&gt;
            {&lt;br /&gt;
                // Set gzip.&lt;br /&gt;
                client.Headers[&amp;quot;Accept-Encoding&amp;quot;] = &amp;quot;gzip&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
                // Download.&lt;br /&gt;
                // ... Do an initial run to prime the cache.&lt;br /&gt;
                byte[] data = client.DownloadData(url);&lt;br /&gt;
&lt;br /&gt;
                // Start timing.&lt;br /&gt;
                Stopwatch stopwatch = Stopwatch.StartNew();&lt;br /&gt;
&lt;br /&gt;
                // Iterate.&lt;br /&gt;
                for (int i = 0; i &amp;lt; Math.Min(100, _max); i++)&lt;br /&gt;
                {&lt;br /&gt;
                    data = client.DownloadData(url);&lt;br /&gt;
                }&lt;br /&gt;
&lt;br /&gt;
                // Stop timing.&lt;br /&gt;
                stopwatch.Stop();&lt;br /&gt;
&lt;br /&gt;
                // Report times.&lt;br /&gt;
                Console.WriteLine(&amp;quot;Time required: {0} ms&amp;quot;, stopwatch.Elapsed.TotalMilliseconds);&lt;br /&gt;
                Console.WriteLine(&amp;quot;Time per page: {0} ms&amp;quot;, stopwatch.Elapsed.TotalMilliseconds / _max);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        catch (Exception ex)&lt;br /&gt;
        {&lt;br /&gt;
            Console.WriteLine(ex.ToString());&lt;br /&gt;
        }&lt;br /&gt;
        finally&lt;br /&gt;
        {&lt;br /&gt;
            Console.WriteLine(&amp;quot;[Done]&amp;quot;);&lt;br /&gt;
            Console.ReadLine();&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Dot.NET]]&lt;br /&gt;
[[Category:Microsoft]]&lt;/div&gt;</summary>
		<author><name>PeterHarding</name></author>
	</entry>
</feed>