| 1 | // | 
|---|---|
| 2 | // Copyright (c) Microsoft. All rights reserved. | 
| 3 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. | 
| 4 | // | 
| 5 | |
| 6 | #ifndef _SimpleTimer | 
| 7 | #define _SimpleTimer | 
| 8 | |
| 9 | class SimpleTimer | 
| 10 | { | 
| 11 | public: | 
| 12 | SimpleTimer(); | 
| 13 | ~SimpleTimer(); | 
| 14 | |
| 15 | void Start(); | 
| 16 | void Stop(); | 
| 17 | double GetMilliseconds(); | 
| 18 | double GetSeconds(); | 
| 19 | |
| 20 | private: | 
| 21 | LARGE_INTEGER proc_freq; | 
| 22 | LARGE_INTEGER start; | 
| 23 | LARGE_INTEGER stop; | 
| 24 | }; | 
| 25 | #endif | 
| 26 | 
