====== TimeStart ====== ### In order to determine the total time spent in parts of the code one can use timing. The function //TimeStart(a)// starts the clock for the section that follows. The variable //a// should be a string that acts as label for the part of the code you want to time. ### ===== Input ===== ### * a : string ### ===== Output ===== ### none ### ===== Example ===== ### A small example timing part of the code: ### ==== Input ==== dofile("../definitions.Quanty") TimeStart("Eigensystem") Eigensystem(Opp1,psi1) TimeEnd("Eigensystem") TimeStart("Spectra") spec = CreateSpectra(Opp1,Opp2,psi1) TimeEnd("Spectra") TimePrint() ==== Result ==== Timing results Total_time | NumberOfRuns | Running | Name 0:00:00 | 1 | 0 | Eigensystem 0:00:00 | 1 | 0 | Spectra ===== Table of contents ===== {{indexmenu>.#1}}