Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Now i check this milisec, and subtract few milisec, cause of CPU delay...But this is ugly and...!!
Are you syncing word highlighting with audio are were you just using that as an example?
I set the timings manually.I mean first you have to set the timings by pressing a key.As soon as you hit a key,
i will check the time elapse by 2 successive key press= gives me time taken for a word.
These timings are stored in array.Now i read these timings words by words...and set corresponding
Delay!!
And how to go about checking a fixed point?
Can an SSCCE http://sscce.org/ help?
I hope i'll get some good advice.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
but i am not getting the logic behind it.That is why cannot implement it correctly.
Got it
For one or two lines, it works fine.But after that i dont know what happens, it becomes slow..why?
But to my disappointment, it's still slow.
The whole point of doing what I suggested was to remove any accumulative error regardless of whether the timings run faster or slower. If my solution gradually goes out of time either the implementation or the word times are wrong.And also he had found something very intresting: "my conclusion is the Swing Timer is actually running faster than it should for each letter and this of course causes an avalanche effect i.e the longer the timer runs the greater the difference will become."
mooooooo ..... tiny ad ....
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|