Mercurial > octave
comparison scripts/time/clock.m @ 23083:e9a0469dedd9 stable
maint: strip extra trailing newlines from files.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 20 Jan 2017 12:19:08 -0500 |
parents | bac0d6f07a3e |
children | ef4d915df748 3ac9f9ecfae5 |
comparison
equal
deleted
inserted
replaced
23082:e8d64dce0afd | 23083:e9a0469dedd9 |
---|---|
58 | 58 |
59 %!test | 59 %!test |
60 %! t1 = clock; | 60 %! t1 = clock; |
61 %! t2 = str2num (strftime ("[%Y, %m, %d, %H, %M, %S]", localtime (time ()))); | 61 %! t2 = str2num (strftime ("[%Y, %m, %d, %H, %M, %S]", localtime (time ()))); |
62 %! assert (etime (t1, t2) < 1); | 62 %! assert (etime (t1, t2) < 1); |
63 |