OpenPFC  0.1.4
Phase Field Crystal simulation framework
Loading...
Searching...
No Matches
timeleft.hpp File Reference

Estimated time remaining display. More...

#include <iostream>
Include dependency graph for timeleft.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  pfc::utils::TimeLeft
 

Detailed Description

Estimated time remaining display.

This header provides the TimeLeft class for converting elapsed time in seconds to a human-readable format (days, hours, minutes, seconds).

The class automatically breaks down time into appropriate units and provides formatted output for displaying estimated time remaining in long-running simulations.

double seconds_remaining = 3665.0;
pfc::utils::TimeLeft time(seconds_remaining);
std::cout << time << std::endl; // Prints "1h 1m 5s"
Definition timeleft.hpp:39
Estimated time remaining display.
See also
mpi/timer.hpp for MPI-based timing
utils.hpp for other utility functions
Author
OpenPFC Development Team
Date
2025