Mercurial > octave
changeset 33101:0cee23f74ae9
maint: merge stable to default
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 27 Feb 2024 23:51:59 -0500 |
parents | 12ba0316d483 (current diff) 71bbf3d89efe (diff) |
children | 445396d7edbb f3eb27de36cf |
files | |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/testfun/__run_test_suite__.m Tue Feb 27 20:32:13 2024 -0800 +++ b/scripts/testfun/__run_test_suite__.m Tue Feb 27 23:51:59 2024 -0500 @@ -68,6 +68,8 @@ if (fid < 0) error ("__run_test_suite__: could not open %s for writing", logfile); endif + tot_cpu_tm = cputime (); + tot_tic_tag = tic (); test ("", "explain", fid); puts ("\nIntegrated test scripts:\n\n"); printf ("%101s\n", "[ CPU / CLOCK ]"); @@ -92,6 +94,9 @@ drtsk += rtsk; drgrs += rgrs; endfor + tot_clock_tm = toc (tot_tic_tag); + tot_cpu_tm = cputime () - tot_cpu_tm; + printf ("%80s [%6.1fs / %6.1fs]", "total time (CPU / CLOCK)", tot_cpu_tm, tot_clock_tm); if (! isempty (summary_failure_info)) puts ("\nFailure Summary:\n\n"); for i = 1:numel (summary_failure_info) @@ -215,9 +220,9 @@ tmp = reduce_test_file_name (ffnm, topbuilddir, topsrcdir); print_test_file_name (tmp); cpu_tm = cputime (); - tic (); + tic_tag = tic (); [p, n, xf, xb, sk, rtsk, rgrs] = test (ffnm, "quiet", fid); - clock_tm = toc (); + clock_tm = toc (tic_tag); cpu_tm = cputime () - cpu_tm; print_pass_fail (p, n, xf, xb, sk, rtsk, rgrs, cpu_tm, clock_tm); dp += p;