view timeTask.m @ 808:442ec6c77c3f feature/poroelastic

Make multiblock.evalOn work for any dimension
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 27 Jul 2018 10:03:21 -0700
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