Gromacs  2020.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
#include <cstdint>
#include <cstdio>
#include <cstdlib>
+ Include dependency graph for printtime.h:

Description

Declares functions that write timestamps to e.g. log files.

Functions

void print_time (FILE *out, gmx_walltime_accounting *walltime_accounting, int64_t step, const t_inputrec *ir, const t_commrec *cr)
 Print time to out.
 
void print_date_and_time (FILE *log, int rank, const char *title, double the_time)
 Print date, time, MPI rank and a description of this point in time. More...
 
void print_start (FILE *fplog, const t_commrec *cr, gmx_walltime_accounting *walltime_accounting, const char *name)
 Print start time to fplog.
 

Function Documentation

void print_date_and_time ( FILE *  log,
int  rank,
const char *  title,
double  the_time 
)

Print date, time, MPI rank and a description of this point in time.

Parameters
[in]loglogfile, or NULL to suppress output
[in]rankMPI rank to include in the output
[in]titleDescription to include in the output
[in]the_timeSeconds since the epoch, e.g. as reported by gmx_gettime