unpack_timing {CellBench} | R Documentation

## Unpack timing information

### Description

Takes the result of a time_methods() call and remove the 'timed_result' column, replacing it with three columns of durations representing the 'system', 'user' and 'elapsed' times from a system.time() call.

### Usage

    unpack_timing(x)

    ## S3 method for class 'benchmark_timing_tbl'
    unpack_timing(x)

### Arguments

`x` | the benchmark_timing_tbl object

### Value

a tibble containing pipeline steps and timing information

### See Also

`strip_timing`

### Examples

    ## Not run:
    datasets <- list(
        data1 = c(1, 2, 3)
    )

    transforms <- list(
        log = function(x) { Sys.sleep(0.1); log(x) },
        sqrt = function(x) { Sys.sleep(0.1); sqrt(x) }
    )

    datasets %>%
        time_methods(transforms) %>%
        unpack_timing()

    ## End(Not run)

[Package CellBench version 1.10.0 Index]