Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.0 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Time and Date > etime

etime

Elapsed time

Calling Sequence

e = etime(t2,t1)

Arguments

t2

a vector with 6 or 10 values.

t1

a vector with 6 or 10 values.

e

number of seconds between t2 and t1.

Description

t1 and t2 with 10 values

t2 and t1 must have format returned by getdate. In this case, their third, fourth and fifth values are ignored.

t1 and t2 with 6 values

t2 and t1 must have format: T = [Year Month Day Hour Minute Second] with Second a number of seconds with milliseconds (e.g: 12.345).

t2 and t1 must have the same size.

t2 et t1 can be matrices with each line containing a format described above (all lines having same format).

Examples

t1=[2004 06 10 17 00 12.345]
t2=[2004 06 10 17 01 13.965]
E1=etime(t2,t1)
t1=[2004 06 24 162 5 10 17 00 12 345]
t2=[2004 06 24 162 5 10 17 01 13 965]
E2=etime(t2,t1)

See Also

  • tic — start a stopwatch timer
  • toc — Read the stopwatch timer
  • getdate — get date and time information
  • datenum — Convert to serial date number
  • datevec — Date components
Report an issue
<< eomday Time and Date getdate >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Oct 01 17:34:55 CEST 2012