timer.hh 397 Bytes
Newer Older
Sugon_ldc's avatar
Sugon_ldc committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef TIMER_HH
#define TIMER_HH

/*
 * This part of code is not used.
#include <chrono>

inline double getDuration(std::chrono::time_point<std::chrono::system_clock> a,
        std::chrono::time_point<std::chrono::system_clock> b) {
    return  std::chrono::duration<double>(b - a).count();
}

#define timestamp(__var__) auto __var__ = std::chrono::system_clock::now();
*/

#endif  // TIMER_HH