Mercurial > repos > public > sbplib
comparison timeTask.m @ 832:5573913a0949 feature/burgers1d
Merged with default, and updated +scheme/Burgers1D accordingly
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 11 Sep 2018 15:58:35 +0200 |
parents | 1afd33f719df |
children |
comparison
equal
deleted
inserted
replaced
831:d0934d1143b7 | 832:5573913a0949 |
---|---|
1 function done = timeTask(taskName) | 1 function done = timeTask(fmt, varargin) |
2 fprintf('%s', taskName); | 2 fprintf(fmt, varargin{:}); |
3 tStart = tic; | 3 tStart = tic; |
4 | 4 |
5 function done_fun() | 5 function done_fun() |
6 fprintf(' - done %fs\n', toc(tStart)); | 6 fprintf(' - done %fs\n', toc(tStart)); |
7 end | 7 end |