Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

%time inline in notebook?

I've noticed I can use %time from the terminal/sage CLI inline with a statement; but I get a syntax error in the notebook. Is there a way I can put %time inline inside a notebook cell?

"%time; statement" or "%time statement" doesn't work (in the notebook).

Aside: It would be nice if I could get the starting time (of evaluation) as a side-effect too, not just the CPU and Wall Time.

click to hide/show revision 2
retagged

%time inline in notebook?

I've noticed I can use %time from the terminal/sage CLI inline with a statement; but I get a syntax error in the notebook. Is there a way I can put %time inline inside a notebook cell?

"%time; statement" or "%time statement" doesn't work (in the notebook).

Aside: It would be nice if I could get the starting time (of evaluation) as a side-effect too, not just the CPU and Wall Time.