view timeTask.m @ 1236:3722c2579818 feature/dirac_discr

Attempt to factor out a function for finding indecies of the source
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 20 Nov 2019 00:10:30 +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