MCPcopy Create free account
hub / github.com/WiringPi/WiringPi / delay

Function delay

wiringPi/wiringPi.c:3182–3190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3180 */
3181
3182void delay (unsigned int ms)
3183{
3184 struct timespec sleeper, dummy ;
3185
3186 sleeper.tv_sec = (time_t)(ms / 1000) ;
3187 sleeper.tv_nsec = (long)(ms % 1000) * 1000000 ;
3188
3189 nanosleep (&sleeper, &dummy) ;
3190}
3191
3192
3193/*

Callers 15

waitForConversionFunction · 0.70
drcSetupSerialFunction · 0.70
softPwmCreateFunction · 0.70
softTone.cFile · 0.70
softToneCreateFunction · 0.70
bmp180ReadTempPressFunction · 0.70
myAnalogReadFunction · 0.70
htu21dSetupFunction · 0.70
maxDetectReadFunction · 0.70
wiringPiISRInternalFunction · 0.70
SetUpTestSuiteMethod · 0.50
TearDownMethod · 0.50

Calls

no outgoing calls

Tested by 15

SetUpTestSuiteMethod · 0.40
TearDownMethod · 0.40
TEST_FFunction · 0.40
SetUpTestSuiteMethod · 0.40
TearDownTestSuiteMethod · 0.40
TearDownMethod · 0.40
SetUpTestSuiteMethod · 0.40
TearDownMethod · 0.40
TEST_FFunction · 0.40
SetUpTestSuiteMethod · 0.40
TearDownMethod · 0.40
TEST_FFunction · 0.40