view timeTask.m @ 788:b3ea4cccaf15 bcSetupExperiment

Remove some stuff duplicated from the verifyFormat function
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 24 Jul 2018 16:30:15 -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