mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2024-11-12 21:09:01 +00:00
24 lines
818 B
C++
24 lines
818 B
C++
/*=============================================================================
|
|
Copyright (c) 2011-2016 Bolero MURAKAMI
|
|
https://github.com/bolero-MURAKAMI/Sprout
|
|
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
=============================================================================*/
|
|
#ifndef SPROUT_CTIME_DIFFTIME_HPP
|
|
#define SPROUT_CTIME_DIFFTIME_HPP
|
|
|
|
#include <ctime>
|
|
#include <sprout/config.hpp>
|
|
|
|
namespace sprout {
|
|
//
|
|
// 7.23.2.2 The difftime function
|
|
//
|
|
inline SPROUT_CONSTEXPR double
|
|
difftime(std::time_t time1, std::time_t time0) {
|
|
return static_cast<double>(time1) - static_cast<double>(time0);
|
|
}
|
|
} // namespace sprout
|
|
|
|
#endif // #ifndef SPROUT_CTIME_DIFFTIME_HPP
|