view timeTask.m @ 966:4a85cff53107 feature/poroelastic

Fix bug in Elastic2dVariable that caused crash for m_x neq m_y
author Martin Almquist <malmquist@stanford.edu>
date Sat, 22 Dec 2018 18:08:51 +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