Mercurial > repos > public > sbplib
diff labelTask.m @ 199:d18096820ed4 feature/grids
Merged default into feature/grids.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 13 Jun 2016 16:50:16 +0200 |
parents | 1f5f988e9682 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/labelTask.m Mon Jun 13 16:50:16 2016 +0200 @@ -0,0 +1,12 @@ +function o = labelTask(in) + + switch class(in) + case 'char' + fprintf(in); + o = tic(); + case 'uint64' + o = toc(in); + fprintf(' - done %fs\n', o); + otherwise + error('Unknow input type: %s', class(in)) + end