sarkas.utilities.timing.time_stamp#

sarkas.utilities.timing.time_stamp(log_file, message, timing, print_to_screen=False)[source]#

Print out to screen elapsed times. If verbose output, print to file first and then to screen.

Parameters
  • log_file (str) – Path to file on which date time stamp should be appended to.

  • message (str) – Message to print.

  • timing (tuple) – Time in hrs, min, sec, msec, usec, nsec.

  • print_to_screen (bool) – Flag for printing the message to screen. Default is False.