kolibrios-fun/programs/system/shell/cmd/cmd_sleep.c
Albom deca8b884f Shell v0.6.1. Some minor improvements.
git-svn-id: svn://kolibrios.org@3247 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-02-17 15:22:51 +00:00

21 lines
347 B
C

int cmd_sleep(char param[])
{
int delay;
if (!strlen(param))
{
#if LANG_ENG
printf(" sleep <time in the 1/100 of second>\n\r");
#elif LANG_RUS
printf(" sleep <интервал в сотых доля секунды>\n\r");
#endif
return TRUE;
}
delay = _atoi(param);
kol_sleep((unsigned)delay);
return TRUE;
}