Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
ClockTraits.h
Go to the documentation of this file.
1 #pragma once
2 /*
3  * This file is part of the gobelijn software.
4  * Gobelijn is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the
6  * Free Software Foundation, either version 3 of the License, or any later
7  * version. Gobelijn is distributed in the hope that it will be useful, but
8  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
9  * or FITNESS FOR A PARTICULAR PURPOSE.
10  * See the GNU General Public License for details. You should have received
11  * a copy of the GNU General Public License along with the software. If not,
12  * see <http://www.gnu.org/licenses/>.
13  *
14  * Copyright 2012, Jan Broeckhove.
15  */
21 #include "ClockCLib.h"
22 #include "Stopwatch.h"
23 
24 #include <chrono>
25 
26 namespace UA_CoMP {
27 namespace Timekeeper {
28 
32 template <typename C = ClockCLib, typename D = typename C::duration>
34 {
35 public:
37  using Clock = C;
38 
41 
43  using Duration = D;
44 };
45 
46 } // namespace Timekeeper
47 } // namespace UA_CoMP
D Duration
Type for time duration units.
Definition: ClockTraits.h:43
Types related to timekeeping.
Definition: ClockTraits.h:33
Definition of Stopwatch.
Provides a stopwatch interface to time: it accumulates time between start/stop pairs.
Definition: Stopwatch.h:33