diff options
author | Nicolas Hillegeer <nicolas@hillegeer.com> | 2014-07-17 13:54:41 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-07-20 16:59:57 -0400 |
commit | 47815fc6f43e42d64f57d6cf72dad21c3e012c31 (patch) | |
tree | 883dadcee7926c8252313c82f7810a9741a8ecc3 /src/nvim/ex_cmds2.c | |
parent | a0015103820fe2a9df92275561c2d71864cf7eb1 (diff) | |
download | rneovim-47815fc6f43e42d64f57d6cf72dad21c3e012c31.tar.gz rneovim-47815fc6f43e42d64f57d6cf72dad21c3e012c31.tar.bz2 rneovim-47815fc6f43e42d64f57d6cf72dad21c3e012c31.zip |
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.
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |