aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
authorNicolas Hillegeer <nicolas@hillegeer.com>2014-07-17 13:54:41 +0200
committerJustin M. Keyes <justinkz@gmail.com>2014-07-20 16:59:57 -0400
commit47815fc6f43e42d64f57d6cf72dad21c3e012c31 (patch)
tree883dadcee7926c8252313c82f7810a9741a8ecc3 /src/nvim/main.c
parenta0015103820fe2a9df92275561c2d71864cf7eb1 (diff)
downloadrneovim-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.c2
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;
}
}