mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
sandbox: Add timer simulation
Making sleep command work Signed-off-by: Matthias Weisser <weisserm@arcor.de> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
committed by
Mike Frysinger
parent
21899b1085
commit
d99a6874f5
14
include/os.h
14
include/os.h
@@ -84,3 +84,17 @@ void os_tty_raw(int fd);
|
||||
* \return Pointer to length bytes or NULL on error
|
||||
*/
|
||||
void *os_malloc(size_t length);
|
||||
|
||||
/**
|
||||
* Access to the usleep function of the os
|
||||
*
|
||||
* \param usec Time to sleep in micro seconds
|
||||
*/
|
||||
void os_usleep(unsigned long usec);
|
||||
|
||||
/**
|
||||
* Gets a monotonic increasing number of nano seconds from the OS
|
||||
*
|
||||
* \return A monotonic increasing time scaled in nano seconds
|
||||
*/
|
||||
u64 os_get_nsec(void);
|
||||
|
Reference in New Issue
Block a user