]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/OS/Chrono.h
e0124062b1fd9eb0d332ee2ec9feb27ebea3e5e6
[cpPlugins.git] / lib / cpPlugins / OS / Chrono.h
1 #ifndef __cpPlugins__OS__Chrono__h__
2 #define __cpPlugins__OS__Chrono__h__
3
4 #include <cpPlugins/Config.h>
5 #include <chrono>
6
7 // -------------------------------------------------------------------------
8 #define cpPlugins_CHRONO                                        \
9   std::chrono::duration_cast< std::chrono::milliseconds >(      \
10     std::chrono::system_clock::now( ).time_since_epoch( )       \
11     ).count( )
12
13 #endif // __cpPlugins__OS__Chrono__h__
14
15 // eof - $RCSfile$