Post Reply 
time functions startTimer, checkTimer, tic, toc ...
05-01-2015, 02:20 AM (This post was last modified: 05-01-2015 02:36 AM by compsystems.)
Post: #1
time functions startTimer, checkTimer, tic, toc ...
Hello

I have seen the power of response in hpprime =), I want to make some comparisons with other calcs and maths pc.

I require timer commands for next firmware

Thanks

ti68K calcs
Code:
name_function(n)
 Func
   Local tm
   startTmr() → tm
   ...      
   checkTmr( tm )
   EndIf
 EndFunc


MatrixLab

Code:

tic;
toc;
disp([ ' computation time [seg] = ' num2str(toc)])
Find all posts by this user
Quote this message in a reply
05-01-2015, 06:11 AM
Post: #2
RE: time functions startTimer, checkTimer, tic, toc ...
You can already use TEVAL().
Find all posts by this user
Quote this message in a reply
05-01-2015, 10:46 AM (This post was last modified: 05-01-2015 10:48 AM by DrD.)
Post: #3
RE: time functions startTimer, checkTimer, tic, toc ...
You could do a clock walk like tic toc, per your ti68k calcs and MatrixLab, ad hoc mock:

Code:

EXPORT test()
BEGIN 
  local tic:=ticks, toc;
  for toc from 1 to 6000 do end;  // Do whatever needs doing until done doing dat
  toc:=ticks;
  return ("  computation time [seg] ="+string(toc-tic));  //  disp([ ' computation time [seg] = ' num2str(toc)])
END;
Find all posts by this user
Quote this message in a reply
05-01-2015, 08:26 PM (This post was last modified: 05-01-2015 08:29 PM by compsystems.)
Post: #4
RE: time functions startTimer, checkTimer, tic, toc ...
The TICKS command, not is in the catalog. =[

TEVAL is difficult to know what it means.
TimerEval or Similar
8 characters is to primitive calculators as ti68k
Find all posts by this user
Quote this message in a reply
05-01-2015, 08:37 PM
Post: #5
RE: time functions startTimer, checkTimer, tic, toc ...
(05-01-2015 08:26 PM)compsystems Wrote:  The TICKS command, not is in the catalog. =[
you could find TICKS in the the HELP system:
Code:
Syntax:
TICKS()
Returns the internal milisecond clock value.
Example:
TICKS
Find all posts by this user
Quote this message in a reply
05-01-2015, 09:05 PM (This post was last modified: 05-01-2015 09:26 PM by compsystems.)
Post: #6
RE: time functions startTimer, checkTimer, tic, toc ...
I found TICKS after much searching ... in [HELP] [TREE] [MAIN] [ THE TOOLBOX MENU] [CATLG MENU] [P-T] TICKS

[CATLG MENU] should be as shortcut to the tools menu buttom


[TOOLS] menu
[MATH]
[APP]
[CAS]
[CATALOG]
[all cmds and functions ] / [a-e] [f-j] ... [u-z]
[OK]
Find all posts by this user
Quote this message in a reply
Post Reply 




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