LC speed

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

LC speed

Post by dunbarx » Fri Dec 15, 2023 4:26 pm

A thread "which is faster" on the use-list (ugh) made me revisit a thread here, "the microseconds".

To test the mettle of my Mac M2:

Code: Select all

on mouseup
   put the milliseconds into temp
   repeat 10000
     put "XX" into yy
  end repeat
  put the long milliseconds into temp1
   
   put temp into line 1 of fld 1
   put temp1 into line 2 of fld 1
end mouseup
The "long milliseconds" was just to play around with that. The milliseconds would have done as well.

Pretty fast. It took a repeat of ten thousand to start to see a difference between LC grabbing the two values of the clock.

Craig

Post Reply

Return to “Talking LiveCode”