Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
justindocanto
· 14y ago · 0 comments
Forgive me if this is a stupid question, but what's with the sleep functions between other function calls?
EDIT: Should have clarified. I'm referring to the demo.
Comments
[–]
MindTwister
14y ago
I believe this is simply to test/show that it actually works.
[–]
CWIZO
14y ago
That's just the demo, so you get some numbers in the output (since it doesn't do anything otherwise).
[–]
stutter
14y ago
as the other two stated, the sleep calls just simulate actual code running, so the profiler produces some output other than 0ms for everything.