Differences
This shows you the differences between two versions of the page.
| documentation:language_reference:functions:timestart [2016/10/09 21:56] – created Maurits W. Haverkort | documentation:language_reference:functions:timestart [2025/11/20 03:29] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== TimeStart ====== | ||
| + | ### | ||
| + | In order to determine the total time spent in parts of the code one can use timing. The function // | ||
| + | ### | ||
| + | |||
| + | ===== Input ===== | ||
| + | |||
| + | ### | ||
| + | * a : string | ||
| + | |||
| + | ### | ||
| + | |||
| + | ===== Output ===== | ||
| + | |||
| + | ### | ||
| + | none | ||
| + | ### | ||
| + | |||
| + | ===== Example ===== | ||
| + | |||
| + | ### | ||
| + | A small example timing part of the code: | ||
| + | ### | ||
| + | |||
| + | ==== Input ==== | ||
| + | <code Quanty Time.Quanty> | ||
| + | dofile(" | ||
| + | |||
| + | TimeStart(" | ||
| + | Eigensystem(Opp1, | ||
| + | TimeEnd(" | ||
| + | |||
| + | TimeStart(" | ||
| + | spec = CreateSpectra(Opp1, | ||
| + | TimeEnd(" | ||
| + | |||
| + | TimePrint() | ||
| + | </ | ||
| + | |||
| + | ==== Result ==== | ||
| + | <file Quanty_Output Time.out> | ||
| + | Timing results | ||
| + | | ||
| + | 0:00:00 | 1 | 0 | Eigensystem | ||
| + | 0:00:00 | 1 | 0 | Spectra | ||
| + | </ | ||
| + | |||
| + | ===== Table of contents ===== | ||
| + | {{indexmenu> | ||