Three things:
1) 100000L
is 100 ms, not 10 ms
2) A smile is guaranteed only for sleep, at least for the time of the argument, without guaranteeing how long he will sleep. Read the manpage: all sleep functions make this statement.
3) How do you measure how long it takes? Do you use a millisecond resolution timer?
source share