mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
0ef64bdb40
This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
22 lines
378 B
C
22 lines
378 B
C
/* vi: set sw=4 ts=4: */
|
|
/*
|
|
* Busybox utility routines.
|
|
*
|
|
* Copyright (C) 2005 by Tito Ragusa <tito-wolit@tiscali.it>
|
|
*
|
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
|
*/
|
|
|
|
#include "libbb.h"
|
|
|
|
void FAST_FUNC bb_do_delay(int seconds)
|
|
{
|
|
time_t start, now;
|
|
|
|
start = time(NULL);
|
|
do {
|
|
sleep(seconds);
|
|
now = time(NULL);
|
|
} while ((now - start) < seconds);
|
|
}
|