LogCabin
Namespaces | Functions
Core/Time.cc File Reference
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <stdexcept>
#include "Core/Debug.h"
#include "Core/Time.h"

Go to the source code of this file.

Namespaces

namespace  LogCabin
namespace  LogCabin::Core
namespace  LogCabin::Core::Time
namespace  std
namespace  std::anonymous_namespace{Time.cc}

Functions

int64_t LogCabin::Core::Time::parseSignedDuration (const std::string &description)
 Convert a human-readable description of a time duration into a number of nanoseconds.
uint64_t LogCabin::Core::Time::parseNonNegativeDuration (const std::string &description)
 Convert a human-readable description of a time duration into a number of nanoseconds.
void LogCabin::Core::Time::sleep (SteadyClock::time_point wake)
 Block the calling thread until the given time.
void LogCabin::Core::Time::sleep (std::chrono::nanoseconds duration)
 Block the calling thread for the given duration.
std::string std::anonymous_namespace{Time.cc}::padFraction (int64_t fraction, uint64_t digits)
std::ostream & std::operator<< (std::ostream &os, const std::chrono::nanoseconds &duration)
std::ostream & std::operator<< (std::ostream &os, const std::chrono::microseconds &duration)
std::ostream & std::operator<< (std::ostream &os, const std::chrono::milliseconds &duration)
std::ostream & std::operator<< (std::ostream &os, const std::chrono::seconds &duration)
std::ostream & std::operator<< (std::ostream &os, const std::chrono::minutes &duration)
std::ostream & std::operator<< (std::ostream &os, const std::chrono::hours &duration)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines