Post Reply 
Time measurement of a function
10-08-2015, 10:46 AM
Post: #1
Time measurement of a function
Hi all,

I need to know how long it takes to execute a function.
Please can you help me with this.

Cheers Jan
Find all posts by this user
Quote this message in a reply
10-08-2015, 11:18 AM
Post: #2
RE: Time measurement of a function
Problem solved, using TICKS gives the right result
Find all posts by this user
Quote this message in a reply
10-08-2015, 03:45 PM
Post: #3
RE: Time measurement of a function
TEVAL(function()) will give you your time in sec as well.

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
10-09-2015, 03:15 AM
Post: #4
RE: Time measurement of a function
(10-08-2015 03:45 PM)Tim Wessman Wrote:  TEVAL(function()) will give you your time in sec as well.

In CAS (only), there's a cool shortcut for timing any expression; just press
Sto, comma, Enter
after the expression that you wish to time. It looks like "►," until you press Enter. (Sto can be typed either from the Sto menu button or Shift EEX).

Example: wait(2)►, Enter
Magically turns into: time(WAIT(2))
Returns: 2 (approximately!).

Notes: The time() function is similar to the TEVAL() function, but returns the seconds without any unit appended. Although the 3-keystroke shortcut only works in CAS, the time() function works in both Home and CAS... but "time" must be spelled in lowercase.

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)