home *** CD-ROM | disk | FTP | other *** search
RISC OS BBC BASIC V Source | 1996-03-22 | 1.6 KB | 46 lines |
- Agile test
- ==========
- &6ac50,"Agile"
- ,,A%;f% :
- WT_ModuleInfo
- 0,"You should run !Agile before running this test."
- on_off
- "Agile test, will tell you weather you should you !Agile or not."
- 63,"=")'
- with=
- test(2,"ACTIVE")
- off%
- without=
- test(1,"PAUSED")
- with=0 with+=.1
- without=0 without+=.1
- times=without/with
- ''"Using Agile, the overhead of calling *commands can be..."
- 'times;" times";
- " faster!"''
- times
- 0:m$="There is no reason to use Agile..."
- 1:m$="You are in the limit, better test Agile in desktop and decide."
- 2,3,4:m$="Ops! we have the same problem, use Agile!"
- 5,6,7,8,9:m$="Thank God you found the solution, use Agile."
- 'C m$="How can you work with this machine? Agile will save you!"
- .I---------------------------------------------------------------------
- test(c%,t$)
- n%=100
- '"With Agile ";t$'
- " times calling a *command..."
- t%=
- ("Echo <11>"+
- a%+" ")
- t%=
- '"Time took: ";
- "";t%/100;
- " seconds."''
- ?I_____________________________________________________________________
- on_off
- on_off%64:P%=on_off%:[opt2
- DG; This code exists because you cannot use registers above R8 in
- .on% mov 1,#1
- GC.same mov 9,0:orr 9,9,#2<<28:swi "XWT_Call":movs 15,14
- H".off% mov 1,#2:b same
-