1// LAF Base Library
2// Copyright (c) 2021 Igara Studio S.A.
3// Copyright (c) 2001-2016 David Capello
4//
5// This file is released under the terms of the MIT license.
6// Read LICENSE.txt for more information.
7
8#ifdef HAVE_CONFIG_H
9#include "config.h"
10#endif
11
12#include "base/chrono.h"
13
14#if LAF_WINDOWS
15 #include "base/chrono_win32.h"
16#else
17 #include "base/chrono_unix.h"
18#endif
19
20namespace base {
21
22 Chrono::Chrono() : m_impl(new ChronoImpl) {
23 }
24
25 Chrono::~Chrono() {
26 delete m_impl;
27 }
28
29 void Chrono::reset() {
30 m_impl->reset();
31 }
32
33 double Chrono::elapsed() const {
34 return m_impl->elapsed();
35 }
36
37} // namespace base
38