version 3.9-dev
chrono.hh File Reference

Helper functions for working with std::chrono. More...

#include <array>
#include <cctype>
#include <chrono>
#include <string>
#include <string_view>
#include <algorithm>
#include <dune/common/exceptions.hh>

Go to the source code of this file.

Namespaces

namespace  Dumux
 
namespace  Dumux::Chrono
 

Functions

template<typename Rep , typename Period >
void Dumux::Chrono::toDuration (std::chrono::duration< Rep, Period > &duration, const std::string &s)
 Try to construct a std::chrono::duration from a string. More...
 
template<typename Rep = double>
std::chrono::duration< Rep > Dumux::Chrono::toSeconds (const std::string &s)
 Try to construct an instance of std::chrono::seconds from a string including a unit suffix. More...
 
Include dependency graph for chrono.hh: