Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
Stopwatch.cs
Go to the documentation of this file.
1 using System;
2 
3 namespace Irony.Parsing.Construction {
4 #if SILVERLIGHT
5  //Less precise version for Silverlight
6  internal class Stopwatch {
7  long _startTime, _endTime;
8  public void Start() {
9  _startTime = Environment.TickCount;
10  }
11  public void Stop() {
12  _endTime = Environment.TickCount;
13  }
14  public long ElapsedMilliseconds {
15  get {return _endTime - _startTime; }
16  }
17  }
18 #endif
19 
20 }