[Openmcl-devel] sleep function in Cocoa.
Park SungMin
byulparan_eng at icloud.com
Mon Dec 30 17:25:38 PST 2013
in Mavericks(OS X 10.9)… I call sleep function..(in CCL IDE and slime(require ‘cocoa))
(sleep 1)… sometime sleep to over 10 seconds,…
…also, NSTimer sometime have long interval in repeats.
so I tested it…. is it bug? Thanks.
Welcome to Clozure Common Lisp Version 1.10-dev-r15993M-trunk (DarwinX8664)!
? (dotimes (i 5)
(time (dotimes (i 100)
(sleep 1))))
(DOTIMES (I 100) (SLEEP 1))
took 310,040,206 microseconds (310.040200 seconds) to run.
During that period, and with 4 available CPU cores,
121,045 microseconds ( 0.121045 seconds) were spent in user mode
40,618 microseconds ( 0.040618 seconds) were spent in system mode
2,119 minor page faults, 3 major page faults, 0 swaps.
(DOTIMES (I 100) (SLEEP 1))
took 297,074,248 microseconds (297.074250 seconds) to run.
During that period, and with 4 available CPU cores,
95,682 microseconds ( 0.095682 seconds) were spent in user mode
32,199 microseconds ( 0.032199 seconds) were spent in system mode
2,327 minor page faults, 6 major page faults, 0 swaps.
(DOTIMES (I 100) (SLEEP 1))
took 450,511,262 microseconds (450.511260 seconds) to run.
During that period, and with 4 available CPU cores,
85,223 microseconds ( 0.085223 seconds) were spent in user mode
32,064 microseconds ( 0.032064 seconds) were spent in system mode
2,588 minor page faults, 9 major page faults, 0 swaps.
(DOTIMES (I 100) (SLEEP 1))
took 361,880,357 microseconds (361.880340 seconds) to run.
During that period, and with 4 available CPU cores,
83,736 microseconds ( 0.083736 seconds) were spent in user mode
24,041 microseconds ( 0.024041 seconds) were spent in system mode
1,110 minor page faults, 4 major page faults, 0 swaps.
(DOTIMES (I 100) (SLEEP 1))
took 453,001,014 microseconds (453.001040 seconds) to run.
During that period, and with 4 available CPU cores,
103,395 microseconds ( 0.103395 seconds) were spent in user mode
24,570 microseconds ( 0.024570 seconds) were spent in system mode
958 minor page faults, 1 major page faults, 0 swaps.
More information about the Openmcl-devel
mailing list