title: Measuring CPU time using Scilab
body: <p>I'm new to working with <a href="https://en.wikipedia.org/wiki/Scilab" rel="nofollow">Scilab</a>, and I'm trying to run the code below, but when I try it keeps showing me this error::</p>
  
  <pre><code>test3(1000)                    //Line that I type to run the code
   !--error 4                   //First error
  Undefined variable: cputime
  at line       2 of function test3 called by:
  </code></pre>
  
  <p>I ran it using <a href="http://en.wikipedia.org/wiki/MATLAB" rel="nofollow">MATLAB</a>, and it worked, but I can't figure out how to make it run using Scilab.</p>
  
  <p>For sample code when typed using the Scilab editor, see below.</p>
  
  <pre><code>function test3(n)
  t = cputime;
  for (j = 1:n)
      x(j) = sin(j);
  end
  disp(cputime - t);
  </code></pre>