Skip to content

Commit

Permalink
time: add msleep() wrapper for miliseconds
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
  • Loading branch information
wipawel committed Aug 6, 2021
1 parent 810a4e3 commit 46f250e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ typedef uint64_t time_t;

extern void sleep(time_t ms);

/* Static declarations */

static inline void msleep(time_t ms) { sleep(ms); }

#endif

0 comments on commit 46f250e

Please sign in to comment.