Post Reply 
TIME() in RPN Mode?
11-22-2014, 07:32 AM
Post: #1
TIME() in RPN Mode?
I'm using TIME(program_name) to give the running time of programs but it only appears to work in Algebraic mode. In RPN mode, TIME only seems to give the current time. I've tried putting the program name on the stack but no luck. Is there a way to use TIME() while in RPN mode?

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
11-22-2014, 11:02 AM (This post was last modified: 11-22-2014 11:03 AM by Joe Horn.)
Post: #2
RE: TIME() in RPN Mode?
(11-22-2014 07:32 AM)toml_12953 Wrote:  I'm using TIME(program_name) to give the running time of programs but it only appears to work in Algebraic mode. In RPN mode, TIME only seems to give the current time. I've tried putting the program name on the stack but no luck. Is there a way to use TIME() while in RPN mode?

Use TIME(1) to time what's already on level 1 and tag the output with _s.
Use time(1) to time what's already on level 1 but leave the output untagged.

In general, use parentheses in RPN mode to specify how many stack levels to use for the input to the function. So to time the program called FRED, do this:

'FRED' Enter
time(1) Enter

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
11-22-2014, 12:06 PM (This post was last modified: 11-22-2014 12:07 PM by Didier Lachieze.)
Post: #3
RE: TIME() in RPN Mode?
(11-22-2014 11:02 AM)Joe Horn Wrote:  In general, use parentheses in RPN mode to specify how many stack levels to use for the input to the function. So to time the program called FRED, do this:

'FRED' Enter
time(1) Enter
But if your program uses parameters I don't know how it can take them from the stack, you have to pass them inside parentheses:

'FRED(1234)' ENTER
TIME(1) ENTER
Find all posts by this user
Quote this message in a reply
Post Reply 




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