From 71e8cb569dba72b472d52e307b6050206ac856b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Thu, 4 Jul 2013 21:21:45 +0200 Subject: [PATCH] Added one output argument (return the output of clock). --- matlab/utilities/tests/run_unitary_tests.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/matlab/utilities/tests/run_unitary_tests.m b/matlab/utilities/tests/run_unitary_tests.m index 58a6dba92..86885f880 100644 --- a/matlab/utilities/tests/run_unitary_tests.m +++ b/matlab/utilities/tests/run_unitary_tests.m @@ -1,4 +1,4 @@ -function report = run_unitary_tests(listoffiles) +function [report, time] = run_unitary_tests(listoffiles) % Copyright (C) 2013 Dynare Team % @@ -34,4 +34,8 @@ for f=1:length(listoffiles) end end end +end + +if nargout>1 + time = clock; end \ No newline at end of file