commit | 0a7984af5601323fae7b3398f05a48087db7b767 | [log] [tgz] |
---|---|---|
author | Leah Neukirchen <leah@vuxu.org> | Thu Oct 14 21:27:55 2021 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Oct 14 21:27:55 2021 +0100 |
tree | 22efd296a4db294d3e9288c5d2085c1a5679ae82 | |
parent | 340dd0fbe462a15a9678cfba02085b4adcc45f02 [diff] [blame] |
patch 8.2.3510: changes are only detected with one second accuracy Problem: Changes are only detected with one second accuracy. Solution: Use the nanosecond time if possible. (Leah Neukirchen, closes #8873, closes #8875)
diff --git a/src/evalfunc.c b/src/evalfunc.c index 8a06f75..4abbdb9 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c
@@ -5479,6 +5479,13 @@ 0 #endif }, + {"nanotime", +#ifdef ST_MTIM_NSEC + 1 +#else + 0 +#endif + }, {"num64", 1}, {"ole", #ifdef FEAT_OLE