Mercurial > vim
comparison src/ex_cmds.c @ 19396:a961efb326e5 v8.2.0256
patch 8.2.0256: time and timer related code is spread out
Commit: https://github.com/vim/vim/commit/0a8fed6231c84e4e1b3a7dd6c0d95d3f98207fe0
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 14 13:22:17 2020 +0100
patch 8.2.0256: time and timer related code is spread out
Problem: Time and timer related code is spread out.
Solution: Move time and timer related code to a new file. (Yegappan
Lakshmanan, closes #5604)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 14 Feb 2020 13:30:05 +0100 |
parents | 2ef19eed524a |
children | 7096af834c42 |
comparison
equal
deleted
inserted
replaced
19395:eb5ef6f5f58b | 19396:a961efb326e5 |
---|---|
1674 " %s %s", | 1674 " %s %s", |
1675 #else | 1675 #else |
1676 " %s%s", // " > %s" causes problems on Amiga | 1676 " %s%s", // " > %s" causes problems on Amiga |
1677 #endif | 1677 #endif |
1678 (char *)opt, (char *)fname); | 1678 (char *)opt, (char *)fname); |
1679 } | |
1680 | |
1681 /* | |
1682 * Return the current time in seconds. Calls time(), unless test_settime() | |
1683 * was used. | |
1684 */ | |
1685 time_T | |
1686 vim_time(void) | |
1687 { | |
1688 # ifdef FEAT_EVAL | |
1689 return time_for_testing == 0 ? time(NULL) : time_for_testing; | |
1690 # else | |
1691 return time(NULL); | |
1692 # endif | |
1693 } | 1679 } |
1694 | 1680 |
1695 /* | 1681 /* |
1696 * Implementation of ":fixdel", also used by get_stty(). | 1682 * Implementation of ":fixdel", also used by get_stty(). |
1697 * <BS> resulting <Del> | 1683 * <BS> resulting <Del> |