Internal utility function for logging execution of variables

timeExecution(
  exportFolder,
  taskName,
  cohortIds = NULL,
  parent = NULL,
  start = NA,
  execTime = NA,
  expr = NULL
)