summaryrefslogtreecommitdiff
path: root/src/proto/time.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-02-14 13:22:17 +0100
committerBram Moolenaar <Bram@vim.org>2020-02-14 13:22:17 +0100
commit0a8fed6231c84e4e1b3a7dd6c0d95d3f98207fe0 (patch)
treeb0545af3bfa25ced1890c33fe9c1facf1e749358 /src/proto/time.pro
parentf2cecb6c10909184281e31a8f968200f3841562d (diff)
downloadvim-git-0a8fed6231c84e4e1b3a7dd6c0d95d3f98207fe0.tar.gz
patch 8.2.0256: time and timer related code is spread outv8.2.0256
Problem: Time and timer related code is spread out. Solution: Move time and timer related code to a new file. (Yegappan Lakshmanan, closes #5604)
Diffstat (limited to 'src/proto/time.pro')
-rw-r--r--src/proto/time.pro28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/proto/time.pro b/src/proto/time.pro
new file mode 100644
index 000000000..becafea3b
--- /dev/null
+++ b/src/proto/time.pro
@@ -0,0 +1,28 @@
+/* time.c */
+char *get_ctime(time_t thetime, int add_newline);
+time_T vim_time(void);
+void f_localtime(typval_T *argvars, typval_T *rettv);
+void f_reltime(typval_T *argvars, typval_T *rettv);
+void f_reltimefloat(typval_T *argvars, typval_T *rettv);
+void f_reltimestr(typval_T *argvars, typval_T *rettv);
+void f_strftime(typval_T *argvars, typval_T *rettv);
+void f_strptime(typval_T *argvars, typval_T *rettv);
+long proftime_time_left(proftime_T *due, proftime_T *now);
+timer_T *create_timer(long msec, int repeat);
+long check_due_timer(void);
+void stop_timer(timer_T *timer);
+int set_ref_in_timer(int copyID);
+void timer_free_all(void);
+void f_timer_info(typval_T *argvars, typval_T *rettv);
+void f_timer_pause(typval_T *argvars, typval_T *rettv);
+void f_timer_start(typval_T *argvars, typval_T *rettv);
+void f_timer_stop(typval_T *argvars, typval_T *rettv);
+void f_timer_stopall(typval_T *argvars, typval_T *rettv);
+void time_push(void *tv_rel, void *tv_start);
+void time_pop(void *tp);
+void time_msg(char *mesg, void *tv_start);
+time_T get8ctime(FILE *fd);
+int put_time(FILE *fd, time_T the_time);
+void time_to_bytes(time_T the_time, char_u *buf);
+void add_time(char_u *buf, size_t buflen, time_t tt);
+/* vim: set ft=c : */