TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
timestamp.hpp
#include "./timer.hpp"
#include <chrono>
#include <ctime>
#include <iomanip>
#include <sstream>
#include <string>

Detailed Description

Small helpers that format wall-clock timestamps and durations for human-readable logs.

Definition in file timestamp.hpp.

Go to the source code of this file.

Functions

std::string triqs::utility::estimate_time_left (int N, int n, timer &t)
 Linear extrapolation of the remaining time of a loop, formatted as HH:MM:SS.
std::string triqs::utility::hours_minutes_seconds_from_seconds (double sec)
 Format an absolute number of seconds as HH:MM:SS.
std::string triqs::utility::timestamp ()
 Current local time formatted as HH:MM:SS.