[Glass] Time and System millisecondsToRun

bruno buzzi brassesco smalltalk at adinet.com.uy
Thu Aug 27 14:15:48 PDT 2020


Hi,

Why there is a difference answer in the following expressions ? (tested 
on GS 3.5.1 and 3.3.7)

Time millisecondsToRun: [(Delay forSeconds: 4) wait]. "answer 4000  -> 
computing the delay time "

System millisecondsToRun: [(Delay forSeconds: 4) wait]. "answer 0 -> NOT 
computing the delay time"

It seems a difference in how time is computed:
System use primitive 178 and Time use primitive 13.

So Time check actual time difference while System check CPU time 
consumed then excluding delays.

regards,
bruno



More information about the Glass mailing list