[Scilab-users] {EXT} help on timer function

Dang Ngoc Chan, Christophe Christophe.Dang at sidel.com
Thu Nov 10 13:02:34 CET 2016


Hello,

I have a limited understanding about these topics,
but here are a few things I know or guess:

> De : users [mailto:users-bounces at lists.scilab.org] De la part de Osvaldo Sergio Farhat de Carvalho
> Envoyé : jeudi 10 novembre 2016 11:57
>
> 1) timer() measures vary each time you run a program with the same data (see example below);
> how can it be this way, if the number of processor cycles is the same?

Some instructions are stored so the execution is faster when it is performed twice.
This is not unusual when the second execution is faster than the first one.

> 2) if timer() results are not at all equivalent do real-world time,
> how can its precision be given by nanoseconds?

I guess the number of cycle is divided by the frequency to have a time in seconds.

HTH

--
Christophe Dang Ngoc Chan
Mechanical calculation engineer
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



More information about the users mailing list