|
proxygen
|
#include <algorithm>#include <chrono>#include <cinttypes>#include <string>#include <folly/portability/Time.h>#include <openssl/ossl_typ.h>Go to the source code of this file.
Classes | |
| class | proxygen::TimeUtilGeneric< ClockType > |
Namespaces | |
| proxygen | |
Typedefs | |
| using | proxygen::SteadyClock = std::chrono::steady_clock |
| using | proxygen::SystemClock = std::chrono::system_clock |
| using | proxygen::TimePoint = SteadyClock::time_point |
| using | proxygen::SystemTimePoint = SystemClock::time_point |
| using | proxygen::TimeUtil = TimeUtilGeneric<> |
Functions | |
| template<typename T > | |
| bool | proxygen::durationInitialized (const T &duration) |
| template<typename T > | |
| bool | proxygen::timePointInitialized (const T &time) |
| template<typename ClockType = SteadyClock> | |
| std::chrono::time_point< ClockType > | proxygen::getCurrentTime () |
| std::chrono::system_clock::time_point | proxygen::toSystemTimePoint (TimePoint t) |
| time_t | proxygen::toTimeT (TimePoint t) |
| std::chrono::milliseconds | proxygen::millisecondsSinceEpoch () |
| std::chrono::seconds | proxygen::secondsSinceEpoch () |
| std::chrono::milliseconds | proxygen::millisecondsSinceEpoch (TimePoint t) |
| std::chrono::seconds | proxygen::secondsSinceEpoch (TimePoint t) |
| template<typename ClockType = SteadyClock> | |
| std::chrono::microseconds | proxygen::microsecondsBetween (std::chrono::time_point< ClockType > finish, std::chrono::time_point< ClockType > start) |
| template<typename ClockType = SteadyClock> | |
| std::chrono::milliseconds | proxygen::millisecondsBetween (std::chrono::time_point< ClockType > finish, std::chrono::time_point< ClockType > start) |
| template<typename ClockType = SteadyClock> | |
| std::chrono::seconds | proxygen::secondsBetween (std::chrono::time_point< ClockType > finish, std::chrono::time_point< ClockType > start) |
| template<typename ClockType = SteadyClock> | |
| std::chrono::milliseconds | proxygen::millisecondsSince (std::chrono::time_point< ClockType > t) |
| template<typename ClockType = SteadyClock> | |
| std::chrono::seconds | proxygen::secondsSince (std::chrono::time_point< ClockType > t) |
| void | proxygen::getDateTimeStr (char datebuf[32], char timebuf[32]) |
| void | proxygen::getDateOffsetStr (char datebuf[32], int dayOffset) |
| std::string | proxygen::getDateTimeStr (TimePoint tp) |
| std::string | proxygen::getDateTimeStr (const ASN1_TIME *const time) |