view timeTask.m @ 389:42c89b5eedc0 feature/beams

Add borrowing constants for D2 operators in D4Variable
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 10 Jan 2017 17:31:28 +0100
parents 5cb99f56f55e
children 1afd33f719df
line wrap: on
line source

function done = timeTask(taskName)
    fprintf('%s', taskName);
    tStart = tic;

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