CODES / common / time

Display time in a user friendly format

Contents

Syntax

Example

disp(CODES.common.time(3947654));
45 d 16 h 34 m 14 s
tic;p=0;
for i=1:1e7
    p=p+i;
end
disp(CODES.common.time(toc));
8s

See also

disp_box disp_matrix

Copyright © 2015 Computational Optimal Design of Engineering Systems (CODES) Laboratory. University of Arizona.

Computational Optimal Design of
Engineering Systems