view timeTask.m @ 1043:c12b84fe9b00

Remove static method `interface_coupling` that shouldn't have existed in the first place
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 22 Jan 2019 16:50:05 +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