This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class CodeTimer | |
| { | |
| public static void Initialize() | |
| { | |
| Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.High; | |
| Thread.CurrentThread.Priority = ThreadPriority.Highest; | |
| Time("", 1, () => { }); | |
| } | |
| public static void Time(string name, int iteration, Action action) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /****************************************************************************** | |
| Module: Wintellect.cs | |
| Notices: Copyright (c) 2008-2009 Jeffrey Richter | |
| ******************************************************************************/ | |
| using System; | |
| using System.ComponentModel; | |
| using System.Diagnostics; | |
| using System.Runtime.InteropServices; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ExceptionTest | |
| { | |
| long maxLevel = 20; | |
| static void Main(string[] args) | |
| { | |
| ExceptionTest test = new ExceptionTest(); | |
| int count = 10000; | |
| Stopwatch sw = new Stopwatch(); | |
| sw.Start(); |
NewerOlder