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/main.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/main.c')
-rw-r--r-- | src/nvim/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index 442e19dae0..c8b7b10354 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -1472,7 +1472,7 @@ static void init_startuptime(mparm_T *paramp) for (i = 1; i < paramp->argc; ++i) { if (STRICMP(paramp->argv[i], "--startuptime") == 0 && i + 1 < paramp->argc) { time_fd = mch_fopen(paramp->argv[i + 1], "a"); - TIME_MSG("--- VIM STARTING ---"); + time_start("--- VIM STARTING ---"); break; } } |