Navigation

Operators and Keywords

Function List:

C++ API

etime.m File Reference


Functions

endfunction !assert (etime([1900, 12, 31, 23, 59, 59],[1901, 1, 1, 0, 0, 0]),-1)%!assert(etime([1900
etime([1996, 2, 28, 23, 59, 59],[1996, 3, 1, 0, 0, 0] t1 ()
 !assert (etime(t2, t1),[1;1])
 !assert ((etime(t2, t1)==86400 &&etime(t3, t1)==3600%!&&etime(t4, t1)==60 &&etime(t5, t1)==13))
!error etime ()
!error etime (1, 2, 3)

Variables

function secs
 endif [d1, s1] = datenum (t1)
 !t2 = [1901,1,1,0,0,0
!test !t1 = [1993, 8, 20, 4, 56, 1]
 !t3 = [1993, 8, 20, 5, 56, 1]
 !t4 = [1993, 8, 20, 4, 57, 1]
 !t5 = [1993, 8, 20, 4, 56, 14]

Function Documentation

!assert ( (etime(t2, t1)==86400 &&etime(t3, t1)==3600%!&&etime(t4, t1)==60 &&etime(t5, t1)==13)   ) 

!assert ( etime(t2, t1)   ) 

endfunction !assert ( etime([1900, 12, 31, 23, 59, 59],[1901, 1, 1, 0, 0, 0])  ,
1 
)

!error etime ( ,
,
 
)

!error etime (  ) 

etime([1996,2,28,23,59,59],[1996,3,1,0,0,0] t1 (  )  [virtual]


Variable Documentation

!test !t1 = [1993, 8, 20, 4, 56, 1]

!t2 = [1901,1,1,0,0,0

!t3 = [1993, 8, 20, 5, 56, 1]

!t4 = [1993, 8, 20, 4, 57, 1]

!t5 = [1993, 8, 20, 4, 56, 14]

endif[d1, s1] = datenum (t1)

Initial value:

 etime (t1, t0)

  if (nargin != 2)
    print_usage ()