It averages around 3850 and 3900 every time I try. However, when I try to run the test 10000 times the average goes down to just above 3600. BigSur on Xeon W 3GHz.
Best regards Tore Nilsen > 7. apr. 2021 kl. 18:03 skrev Tom Glod via use-livecode > <use-livecode@lists.runrev.com>: > > 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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode