view timeTask.m @ 974:1c334842bf23 feature/poroelastic

Extract tuning from alpha.
author Martin Almquist <malmquist@stanford.edu>
date Tue, 25 Dec 2018 16:39:06 +0100
parents 1afd33f719df
children
line wrap: on
line source

function done = timeTask(fmt, varargin)
    fprintf(fmt, varargin{:});
    tStart = tic;

    function done_fun()
        fprintf(' - done %fs\n', toc(tStart));
    end
    done = @done_fun;
end