Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (sw ==null)
- {
- sw = new Stopwatch();
- ResetStopwatch();
- }
- // Was the following: the purpose was: check if there is a stopwatch, if not, do the create one and reset it.
- // the code above seems simpeler
- //try
- //{
- // bool check = sw.IsRunning;
- //}
- //catch
- //{
- // sw = new Stopwatch();
- // ResetStopwatch();
- //}
Advertisement
Add Comment
Please, Sign In to add comment