Sep. 24, 2018

Hello der,  Guest
Trader Name:
Password:
 | Home | Forum List | Active Threads | Search:
Page: of 1   
TWX Development > New TWX features  
<< Thread >>
Subscribed:  
ElderProphet
TWX Development Team

Joined: Mar 2005

posted: 08/31/2005 at 08:17 PM Post #1

Spent some time this weekend hammering out 2 new commands for TWX Proxy - setTimer and readToArray.

readToArray is a HUGE improvement to large file I/O tasks.  If you've ever tried to read in a 20,000 line text file, you've been amazed at how long it takes in TWX... 2+ minutes on a blazing-fast PC.  With some help from Xide, I was able to create a method that can read a 20k line file to a TWX array in .032 seconds!!!  Definately PC dependant, but should be under a second regardless.  TWX Proxy's read command was probably the command in the most need for improvement, and so I worked to make it as efficient as possible.  Hope you're pleased with the results.

setTimer is a new feature that allows you to time an event with an accuracy of +/- 16 ms.  Syntax is similar to getTime:

getTimer $timerA
gosub :someRoutine
getTimer $timerB
echo "*Time in ms = " ($timerB - $timerA)

The result of getTimer is the actual mSecs count since midnight, local time.  This value updates every 15-16 mSecs.

I've developed another timer based on CPU ticks, accurate to within a few microSeconds.  I intend to use this when optimizing various TWX routines, but may implement it as well, depending on feedback here.

Thanks go out to Xide and Tweety, for help and motivation.

+EP+

Haggle Blog-> http://jroller.com/page/ElderProphet
Zoso

Joined: Mar 2005

posted: 09/01/2005 at 08:20 AM Post #2

Your efforts are truly amazing EP. I myself have not made the Jump to the new version but plan on it shortly, with all these added features. Staying on that topic, Would you or do you have any plans on possibling adding another conditional statement?
Select Case? Or are you focusing on rewrites and improvements?

Zoso
ElderProphet
TWX Development Team

Joined: Mar 2005

posted: 09/01/2005 at 08:48 AM Post #3

These changes aren't available in any version yet, but a release is getting close.

Hit me up on ICQ concerning Select Case.

+EP+

Haggle Blog-> http://jroller.com/page/ElderProphet
Dnyarri


Joined: Jun 2005

posted: 09/01/2005 at 03:04 PM Post #4

Great work!

Idea, since Zoso opened the door... (hehe), a conditional waitFor would be awesome in simplifying triggers.
waitFor (text) OR (text)
waitFor (text) AND (text)

And maybe a waitWhile, too.

The NavHaz Junction - http://www.navhaz.com
TWX Development >  New TWX features
<< Thread >>
Subscribed:  
 | Home | Forum List | Active Threads | Search:
Page: of 1   

"why hello der matey! have a sit and buy me an ale, eh?" -- The Grimy Old Trader

The Grimy Trader is best viewed at 1024x768 resolution -- this page was generated in: 0.434 seconds.