sage, sagetex 및 환경을 사용하여 시간을 측정하는 방법을 보여주고 싶습니다 sagecommandline
. 다음은 최소한의 예입니다.
\documentclass[a6paper,DIV=16]{scrartcl}
\pagestyle{empty}
\usepackage{sagetex}
% arara: lualatex
% arara: sagetex
% arara: lualatex
% !TEX encoding = UTF-8 Unicode
% !TEX TS-program = sage
\begin{document}
\begin{sagecommandline}
sage: factorial(10)
sage: %time factorial(10)
sage: \percent time factorial(10)
\end{sagecommandline}
\end{document}
그러나 원하는 출력을 생성 %time
하지도 않습니다. \percent
마이크로초가 포함된 출력을 포함할 수 있습니까? 내 컴퓨터에서 예:
CPU times: user 11 µs, sys: 0 ns, total: 11 µs Wall time: 14.1 µs 3628800