add_timings: Add timings to a trajectory

View source: R/wrap_add_timings.R

add_timingsR Documentation

Add timings to a trajectory

Description

Add timings to a trajectory

Helper function for storing timings information.

Usage

add_timings(trajectory, timings)

is_wrapper_with_timings(trajectory)

add_timing_checkpoint(timings, name)

Arguments

trajectory

The trajectory as created by infer_trajectory() or add_trajectory()

timings

A list of timings.

name

The name of the timings checkpoint.

Value

A dynwrap object with the timings added.

Examples

trajectory <- example_trajectory
trajectory <- add_timings(
  trajectory,
  list(start = 0, end = 1)
)


dynwrap documentation built on July 26, 2023, 5:15 p.m.