mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-18 15:24:11 +00:00
add packer [n4144]
This commit is contained in:
parent
bba5813733
commit
ff3a85cf55
7 changed files with 293 additions and 0 deletions
24
sprout/ctime/difftime.hpp
Normal file
24
sprout/ctime/difftime.hpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2014 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
|
Loading…
Add table
Add a link
Reference in a new issue