Checking the Milliseconds

Tom Glod tom at makeshyft.com
Wed Apr 7 13:09:00 EDT 2021


I closed everything down to make sure the core was being used as little as
possible.
It didn't make a difference in the counts or the variance I reported
earlier.
I guess its not important, but it sure is curious.
I think it means the engine is busy with something most of the time, and
once in a while it is less busy?.

my numbers seem unusual compared to what you reported. :/

When I build a standalone, its the same kind of variance, just slower
....haha,




My numbers look like this.

3122

3155

6405

3157

6404

3206

3203

3158

3246

3201

3190

3205

3202

6391

3135

6259

3144

3192

3201

3201

3201

6348

3193

6305

3200

3199

3204

3201

3283

6994

3582

7049






On Wed, Apr 7, 2021 at 12:34 PM Ralph DiMola via use-livecode <
use-livecode at lists.runrev.com> wrote:

> I scanned the results after it was done and got this:
>
> Max==>3959
>
> Min==>1015
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdimola at evergreeninfo.net
>
>
> -----Original Message-----
> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On
> Behalf
> Of Tom Glod via use-livecode
> Sent: Wednesday, April 07, 2021 12:03 PM
> To: How to use LiveCode
> Cc: Tom Glod
> Subject: Checking the Milliseconds
>
> Hey peeps,
>
> I wanted to measure how many times the LC engine can check the milliseconds
> count during each millisecond that passes.
>
> The results really surprised me, I thought it would be less, but I don't
> know why really.
>
> Anyone want to take a guess?
>
> What is strange about my results, is that every few milliseconds the amount
> of millisecond queries that occurs ...... doubles.
>
> Why does this happen I wonder?
>
> Can someone double check if that happens on your CPU?  I'm on WIndows 10 on
> an i5 4570.
>
> Here is the code.
> --------------------------------------
>
> local last_known_millisecond
> local queries = 0
> local report
>
> on mouseUp
>    lock screen
>    put empty into report
>    local x
>    repeat 1000 times
>       add 1 to x
>       put 0 into queries
>       put the milliseconds into last_known_millisecond
>       repeat forever
>          add 1 to queries
>          if the milliseconds = last_known_millisecond  then
>             next repeat
>          else
>             exit repeat
>          end if
>       end repeat
>       put queries into line x of report
>    end repeat
>    unlock screen
>    put report
> end mouseUp
>
> --
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (www.makeshyft.com)
> Mobile:647.562.9411
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Mobile:647.562.9411



More information about the use-livecode mailing list