From 47815fc6f43e42d64f57d6cf72dad21c3e012c31 Mon Sep 17 00:00:00 2001 From: Nicolas Hillegeer Date: Thu, 17 Jul 2014 13:54:41 +0200 Subject: startuptime: implement on top of profiling fns Reuse the profiling functions to implement the startuptime functions. Decreases our dependency on `gettimeofday()` and thus gets us a little bit closer to a clean port to Windows. --- src/nvim/ex_cmds2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nvim/ex_cmds2.c') diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 7371ada9b8..dc118bb5fe 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -2262,8 +2262,8 @@ do_source ( int save_debug_break_level = debug_break_level; scriptitem_T *si = NULL; #ifdef STARTUPTIME - struct timeval tv_rel; - struct timeval tv_start; + proftime_T tv_rel; + proftime_T tv_start; #endif proftime_T wait_start; @@ -2494,7 +2494,7 @@ do_source ( if (time_fd != NULL) { vim_snprintf((char *)IObuff, IOSIZE, "sourcing %s", fname); time_msg((char *)IObuff, &tv_start); - time_pop(&tv_rel); + time_pop(tv_rel); } #endif -- cgit