Skip to content

Commit

Permalink
fix OHDSI#1144. execution times are always recorded in minutes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ablack3 committed Oct 9, 2024
1 parent fd3a81b commit ec28e57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,13 @@ timeExecution <- function(exportFolder,
eval(expr)
execTime <- Sys.time() - start
}
checkmate::assertClass(execTime, "difftime")
checkmate::assertClass(start, "POSIXct")
executionTimes <- data.frame(
task = taskName,
startTime = start,
cohortIds = paste(cohortIds, collapse = ";"),
executionTime = execTime,
executionTime = round(as.numeric(execTime, units = "secs")/60, 4),
parent = paste(parent, collapse = "")
)

Expand Down

0 comments on commit ec28e57

Please sign in to comment.