| 1 | // LAF Base Library | 
|---|
| 2 | // Copyright (c) 2001-2016 David Capello | 
|---|
| 3 | // | 
|---|
| 4 | // This file is released under the terms of the MIT license. | 
|---|
| 5 | // Read LICENSE.txt for more information. | 
|---|
| 6 |  | 
|---|
| 7 | #ifndef BASE_CHRONO_H_INCLUDED | 
|---|
| 8 | #define BASE_CHRONO_H_INCLUDED | 
|---|
| 9 | #pragma once | 
|---|
| 10 |  | 
|---|
| 11 | namespace base { | 
|---|
| 12 |  | 
|---|
| 13 | class Chrono { | 
|---|
| 14 | public: | 
|---|
| 15 | Chrono(); | 
|---|
| 16 | ~Chrono(); | 
|---|
| 17 | void reset(); | 
|---|
| 18 | double elapsed() const; | 
|---|
| 19 |  | 
|---|
| 20 | private: | 
|---|
| 21 | class ChronoImpl; | 
|---|
| 22 | ChronoImpl* m_impl; | 
|---|
| 23 | }; | 
|---|
| 24 |  | 
|---|
| 25 | } // namespace base | 
|---|
| 26 |  | 
|---|
| 27 | #endif // BASE_CHRONO_H_INCLUDED | 
|---|
| 28 |  | 
|---|