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/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/main.c') 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; } } -- cgit