blob: 42feaa3ebab29b854bd261acdca4757db9c3f103 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef NEOVIM_OS_TIME_H
#define NEOVIM_OS_TIME_H
#include <stdint.h>
#include <stdbool.h>
/// Initializes the time module
void time_init(void);
/// Sleeps for a certain amount of milliseconds
///
/// @param milliseconds Number of milliseconds to sleep
/// @param ignoreinput If true, allow a SIGINT to interrupt us
void os_delay(uint64_t milliseconds, bool ignoreinput);
/// Sleeps for a certain amount of microseconds
///
/// @param microseconds Number of microseconds to sleep
/// @param ignoreinput If true, allow a SIGINT to interrupt us
void os_microdelay(uint64_t microseconds, bool ignoreinput);
#endif // NEOVIM_OS_TIME_H
|