Skip to content

%time magic #104

@andrus

Description

@andrus

We already started looking to mimic some IPython magics (e.g., see %log). I feel like implementing a version of the %time magic would be useful:

Line magic flavor

%time Csv.load("a.csv");

Cell magic flavor

%%time 
var df = Csv.load("a.csv");
df.cols().merge("concat(a, b)")

The output in IPython is wall time + CPU time:

CPU times: user 1.20 s, sys: 0.05 s, total: 1.25 s
Wall time: 1.37

We will produce a similar display.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions