Benign repos download unavailable

time.c

imports nvim/os/input.himports nvim/os/os.h
SHA-2568edf500952e0c823d1f2bb74c92104c0810352fd0cfc72ef7ecb63dfd6690b44

Evidence

imports nvim/os/input.h lines 1–32
1#include <inttypes.h>
2#include <limits.h>
3#include <stdbool.h>
4#include <string.h>
5#include <time.h>
6
7#include <uv.h>
8
9#include "auto/config.h"
10#include "nvim/event/loop.h"
11#include "nvim/event/multiqueue.h"
12#include "nvim/gettext_defs.h"
13#include "nvim/globals.h"
14#include "nvim/log.h"
15#include "nvim/main.h"
16#include "nvim/memory.h"
17#include "nvim/os/input.h"
18#include "nvim/os/os.h"
19#include "nvim/os/time.h"
20
21#include "os/time.c.generated.h"
22
23/// Gets a high-resolution (nanosecond), monotonically-increasing time relative
24/// to an arbitrary time in the past.
25///
26/// Not related to the time of day and therefore not subject to clock drift.
27///
28/// @return Relative time value with nanosecond precision.
29uint64_t os_hrtime(void)
30 FUNC_ATTR_WARN_UNUSED_RESULT
31{
32 return uv_hrt …
English function-word token "for" lines 45–53
45{
46 return uv_now(&main_loop.uv);
47}
48
49/// Sleeps for `ms` milliseconds.
50///
51/// @see uv_sleep() (libuv v1.34.0)
52///
53/// @param ms Number of …
English function-word token "this" lines 65–68
65:37… hout checking for events or interrupts.
66///
67/// This blocks even "fast" events which is quite disruptive. This should only
68/// be used in debug code …
C declares a character or byte buffer lines 83–89
83:11… nset, up to 64 octets long including trailing null byte.
84static char tz_cache[64];
85
86/// Portable version of POSIX localtime_r()
87///
88/// @return NULL in case of error
89struct tm *os_localtime_r(const time_t * …
English function-word token "that" lines 97–99
97:25… n't require localtime_r() implementations to do that
98 // as it does with localtime(), and we don't want to call tzset() every time.
99 const char *t …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.