sgur
11/22/2010 - 2:49 AM

echo bootup time which is measured by vim --startuptime

echo bootup time which is measured by vim --startuptime

" expect 'vim --startuptime "%TEMP%\vim_startuptime.log"'
let s:startup_logfile = 'vim_startuptime.log'
function! s:GetStartupTime()
	let startup_logpath = expand('$TEMP') . '/' . s:startup_logfile
	if filereadable(startup_logpath)
		let startup_file = readfile(startup_logpath)
 		return matchstr(startup_file[len(startup_file)-1], '^[0-9-.]\+')
	endif
	return 0
endfunction
echo s:GetStartupTime()