#ifndef GET_SECONDS_H #define GET_SECONDS_H // Return current epoch time in seconds double get_seconds(); // Implementation #include double get_seconds() { return std::chrono::duration( std::chrono::system_clock::now().time_since_epoch()).count(); } #endif