~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to macros/util/toc.sci

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function tictoctime=toc()
 
2
// Copyright INRIA
 
3
// toc() read the stopwatch timer.
 
4
// toc(), by itself, prints the elapsed time (in milliseconds) since tic() was used.
 
5
// V.C. & Allan CORNET 2004
 
6
 
 
7
global TICTOC;
 
8
 
 
9
if isempty(TICTOC) then
 
10
  error("You must call tic() before calling toc().")
 
11
end
 
12
 
 
13
tictoctime=etime(getdate(),TICTOC);
 
14
 
 
15
endfunction