view timeTask.m @ 377:cf0bef311ce2 feature/hypsyst

Close branch feature/hypsyst
author Jonatan Werpers <jonatan.werpers@it.uu.se>
date Thu, 26 Jan 2017 13:07:51 +0000
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