supereight
timings.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2011-2013 Gerhard Reitmayr, TU Graz
3  * SPDX-FileCopyrightText: 2014 University of Edinburgh, Imperial College, University of Manchester
4  * SPDX-FileCopyrightText: 2016-2019 Emanuele Vespa
5  * SPDX-FileCopyrightText: 2021 Smart Robotics Lab, Imperial College London, Technical University of Munich
6  * SPDX-FileCopyrightText: 2021 Nils Funk
7  * SPDX-FileCopyrightText: 2021 Sotiris Papatheodorou
8  * SPDX-License-Identifier: MIT
9  */
10 
11 #ifndef SE_TIMINGS_HPP
12 #define SE_TIMINGS_HPP
13 
14 #include "perfstats.hpp"
15 
16 #define TICK(str) se::perfstats.sampleDurationStart(str);
17 #define TICKD(str) se::perfstats.sampleDurationStart(str, true);
18 #define TOCK(str) se::perfstats.sampleDurationEnd(str);
19 
20 #endif // SE_TIMINGS_HPP