MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / sleep

Function sleep

src/sleep.c:146–158  ·  view source on GitHub ↗

* \brief sleep * \param secs is seconds to sleep */

Source from the content-addressed store, hash-verified

144 * \param secs is seconds to sleep
145 */
146unsigned int sleep(unsigned int secs)
147{
148 int retval;
149 struct timespec t;
150 struct timespec tleft;
151 t.tv_sec = secs;
152 t.tv_nsec = 0;
153 retval = nanosleep(&t, &tleft);
154
155 if (retval == -1) { return tleft.tv_sec; }
156
157 return 0;
158}
159#endif
160
161

Callers 15

icom_set_powerstatFunction · 0.85
kenwood_openFunction · 0.85
kenwood_set_powerstatFunction · 0.85
tt585_set_parmFunction · 0.85
tt550_tuneFunction · 0.85
adat_openFunction · 0.85
getmylineFunction · 0.85
getmyline5Function · 0.85
_getmylineFunction · 0.85
mainFunction · 0.85
async_data_handler_startFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68