Speed optimisation

Sarah Reichelt sarah.reichelt at gmail.com
Wed Oct 5 06:13:24 EDT 2005


I tested the suggestions and a couple of my own and couldn't find
anything faster than Wouter's suggestions, with Dick's being very
similar. I challenge for the shortest function :-)

function newTime pTime, pAdd
  set the itemDel to ":"
  add pAdd to item 3 of pTime
  convert pTime to long time
  return char -8 to -1 of ("0" & pTime)
end newTime

But it takes about the same time as the others. However re-cheking
Rob's original specs, I see he uses seconds with 1 decimal place, and
my function won't handle that :-( Wouter's won't either, so Dick's
looks like the best bet at this stage.

Sorry,
Sarah



More information about the use-livecode mailing list