Guest User

Cog delay Delays

a guest
Oct 22nd, 2011
135
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 0 to: 11 do: [:i|
  2. myWait := Delay forMilliseconds: i.
  3. Transcript show: (myWait asString),':';cr.
  4. 5 timesRepeat: [Transcript show: (Time millisecondsToRun: [1000 timesRepeat: [myWait wait]]);cr.]].
  5.  
  6.  
  7. Transcript:
  8.  
  9. a Delay(0 msecs):
  10. 0
  11. 2
  12. 2
  13. 0
  14. 2
  15. a Delay(1 msecs):
  16. 2015
  17. 2015
  18. 2018
  19. 2018
  20. 2017
  21. a Delay(2 msecs):
  22. 2017
  23. 2018
  24. 2015
  25. 2019
  26. 2017
  27. a Delay(3 msecs):
  28. 4036
  29. 4033
  30. 4035
  31. 4032
  32. 4036
  33. a Delay(0 msecs):
  34. 2
  35. 4
  36. 0
  37. 0
  38. 2
  39. a Delay(1 msecs):
  40. 2017
  41. 2018
  42. 2018
  43. 2018
  44. 2015
  45. a Delay(2 msecs):
  46. 2019
  47. 2018
  48. 2020
  49. 2018
  50. 2018
  51. a Delay(3 msecs):
  52. 4035
  53. 4032
  54. 4028
  55. 4033
  56. 4035
  57. a Delay(4 msecs):
  58. 4036
  59. 4033
  60. 4037
  61. 4034
  62. 4034
  63. a Delay(5 msecs):
  64. 6047
  65. 6054
  66. 6052
  67. 6053
  68. 6051
  69. a Delay(6 msecs):
  70. 6054
  71. 6046
  72. 6054
  73. 6050
  74. 6051
  75. a Delay(7 msecs):
  76. 8069
  77. 8064
  78. 8070
  79. 8066
  80. 8075
  81. a Delay(8 msecs):
  82. 8063
  83. 8068
  84. 8066
  85. 8069
  86. 8069
  87. a Delay(9 msecs):
  88. 10082
  89. 10080
  90. 10088
  91. 10081
  92. 10076
  93. a Delay(10 msecs):
  94. 10085
  95. 10092
  96. 10085
  97. 10087
  98. 10086
  99. a Delay(11 msecs):
  100. 12097
  101. 12131
  102. 12105
  103. 12104
  104. 12104
  105.  
  106.  
RAW Paste Data