diff options
| author | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-05-12 02:25:17 +0200 |
|---|---|---|
| committer | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-05-15 20:46:01 +0200 |
| commit | da51dc9cf202772f60bd2da975dbef257bd9237c (patch) | |
| tree | 5c16b93238a153f55634e9323077f30c8133970c /src/os/time.h | |
| parent | ffe61e5ba1721340ca51d56bae3ddaca415fb5bc (diff) | |
| download | rneovim-da51dc9cf202772f60bd2da975dbef257bd9237c.tar.gz rneovim-da51dc9cf202772f60bd2da975dbef257bd9237c.tar.bz2 rneovim-da51dc9cf202772f60bd2da975dbef257bd9237c.zip | |
Introduce nvim namespace: Move files.
Move files from src/ to src/nvim/.
- src/nvim/ becomes the new root dir for nvim executable sources.
- src/libnvim/ is planned to become root dir of the neovim library.
Diffstat (limited to 'src/os/time.h')
| -rw-r--r-- | src/os/time.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/os/time.h b/src/os/time.h deleted file mode 100644 index ef795d03be..0000000000 --- a/src/os/time.h +++ /dev/null @@ -1,35 +0,0 @@ -#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); - -/// Portable version of POSIX localtime_r() -/// -/// @return NULL in case of error -struct tm *os_localtime_r(const time_t *clock, struct tm *result); - -/// Obtains the current UNIX timestamp and adjusts it to local time -/// -/// @param result Pointer to a 'struct tm' where the result should be placed -/// @return A pointer to a 'struct tm' in the current time zone (the 'result' -/// argument) or NULL in case of error -struct tm *os_get_localtime(struct tm *result); - -#endif // NEOVIM_OS_TIME_H - |