File indexing completed on 2024-06-23 05:27:54

0001 /*
0002     SPDX-FileCopyrightText: 2019 Arjen Hiemstra <ahiemstra@heimr.nl>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 #ifndef TIMESTAMPS_H
0008 #define TIMESTAMPS_H
0009 
0010 #include <chrono>
0011 
0012 // This is a helper header to simplify some of the std::chrono usages.
0013 namespace TimeStamp
0014 {
0015 using MicroSeconds = std::chrono::time_point<std::chrono::system_clock, std::chrono::microseconds>;
0016 using Seconds = std::chrono::time_point<std::chrono::system_clock, std::chrono::seconds>;
0017 }
0018 
0019 #endif