This is a static copy of a profile reportHome
s2hms (1 call, 0.000 sec)
Generated 05-Aug-2011 13:03:56 using cpu time.
function in file /home/LeechJ/cbass_analysis/matutils/dateconv/s2hms.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
greg2 | function | 1 |
Lines where the most time was spent
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
14 | sec=round(rem(sec,60)); | 1 | 0 s | 0% |  |
13 | min=floor(rem(sec,3600)./60); | 1 | 0 s | 0% |  |
12 | hr=floor(sec./3600); | 1 | 0 s | 0% |  |
11 | sec=round(secs); | 1 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 14 |
Non-code lines (comments, blank lines) | 10 |
Code lines (lines that can run) | 4 |
Code lines that did run | 4 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function [hr,min,sec]=s2hms(secs)
2 % S2HMS: converts seconds to interger hour, minute, and seconds.
3 % [hr,min,sec]=S2HMS(secs) converts seconds to integer hour, minute,
4 % and seconds.
5 %University of Maine Ocean Modelling Group http://rocky.umeoce.maine.edu/hjx/courses/SMS585/my2.5/air_sea/
6 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7 % 3/11/96: version 1.0
8 % 8/5/99: version 2.0
9 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
10
1 11 sec=round(secs);
1 12 hr=floor(sec./3600);
1 13 min=floor(rem(sec,3600)./60);
1 14 sec=round(rem(sec,60));
Other subfunctions in this file are not included in this listing.