TimeUsed[]
現行のWolframシステムのセッションが開始されてから現在までのCPUの使用時間を秒単位で与える.
TimeUsed
TimeUsed[]
現行のWolframシステムのセッションが開始されてから現在までのCPUの使用時間を秒単位で与える.
例題
すべて開く すべて閉じる例 (2)
TimeUsed[]{res, {times}} = Reap[Sqrt[2] - x /. FindRoot[x ^ 2 - 2, {x, 1.}, WorkingPrecision -> 1000000, EvaluationMonitor :> Sow[TimeUsed[]]]]精度が適応的なので,ほとんどすべての時間が最後のいくつかの評価に使われている:
ListPlot[{times - times[[1]], Join[{0}, Differences[times]]}, PlotRange -> All]スコープ (1)
f[a_ ? NumberQ] := Module[{x, t, r}, Sow[TimeUsed[]];r = First[x[1] /. NDSolve[{x''[t] + (a / 1000 + Exp[-1000 t ^ 2]) == Sin[a t], x[-1] == 0, x'[-1] == 0}, x, {t, -1, 1}, Method -> "StiffnessSwitching", WorkingPrecision -> 32, MaxSteps -> Infinity]];Sow[TimeUsed[]];r]Short[{res, {times}} = Reap[Quiet[FindRoot[f[a], {a, 1000}, WorkingPrecision -> 32]]], 16]times[[-1]] - times[[1]]evals = Apply[(#2 - #1)&, Partition[times, 2], {1}];
{Total[evals], Mean[evals]}ListPlot[evals]テクニカルノート
-
▪
- 日付と時刻の関数
関連するガイド
履歴
1991 で導入 (2.0)
テキスト
Wolfram Research (1991), TimeUsed, Wolfram言語関数, https://reference.wolfram.com/language/ref/TimeUsed.html.
CMS
Wolfram Language. 1991. "TimeUsed." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TimeUsed.html.
APA
Wolfram Language. (1991). TimeUsed. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TimeUsed.html
BibTeX
@misc{reference.wolfram_2026_timeused, author="Wolfram Research", title="{TimeUsed}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/TimeUsed.html}", note=[Accessed: 06-December-2026]}
BibLaTeX
@online{reference.wolfram_2026_timeused, organization={Wolfram Research}, title={TimeUsed}, year={1991}, url={https://reference.wolfram.com/language/ref/TimeUsed.html}, note=[Accessed: 06-December-2026]}