diff options
author | Leah Neukirchen <leah@vuxu.org> | 2021-10-14 21:27:55 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-14 21:27:55 +0100 |
commit | 0a7984af5601323fae7b3398f05a48087db7b767 (patch) | |
tree | 22efd296a4db294d3e9288c5d2085c1a5679ae82 /src/evalfunc.c | |
parent | 340dd0fbe462a15a9678cfba02085b4adcc45f02 (diff) |
patch 8.2.3510: changes are only detected with one second accuracyv8.2.3510
Problem: Changes are only detected with one second accuracy.
Solution: Use the nanosecond time if possible. (Leah Neukirchen,
closes #8873, closes #8875)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 8a06f757df..4abbdb90f6 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -5479,6 +5479,13 @@ f_has(typval_T *argvars, typval_T *rettv) 0 #endif }, + {"nanotime", +#ifdef ST_MTIM_NSEC + 1 +#else + 0 +#endif + }, {"num64", 1}, {"ole", #ifdef FEAT_OLE |