read_runtime_log: Calculate job elapsed time from log file

View source: R/read_runtime_log.R

read_runtime_logR Documentation

Calculate job elapsed time from log file

Description

Obtains the elapsed job time in seconds from a standard Peregrine HPCC log file

Usage

read_runtime_log(log_lines, log_file_path)

Arguments

log_lines

Character vector containing the contents of the log files as read by read_log_file().

log_file_path

A string with the path for a standard Peregrine HPCC log file.

Value

An atomic numeric vector with the elapsed run time of the associated job in seconds.

Author(s)

Pedro Santos Neves

Examples

## Not run: 
log_lines <- read_log_file("logs/robustness-22353751.log")
runtime <- read_runtime_log(
  log_lines = log_lines,
  log_file_path = "logs/robustness-22353751.log"
)

## End(Not run)

Neves-P/DAISIErobustness documentation built on May 22, 2024, 4:26 p.m.