sponsor Vim development Vim logo Vim Book Ad

TIMEIT : Time execution of vim command(s) with subsecond resolution

 script karma  Rating 6/3, Downloaded by 1297  Comments, bugs, improvements  Vim wiki

created by
Yakov Lerner
 
script type
utility
 
description
" Time execution of vim command(s) with subsecond resolution,
" For example:
"      :TIM sleep 100m
" prnits
"      Execution took   0.100301 sec.
" With counter, TIMEIT times that many repetitions of the command:
"      :10TIM sleep 100m
" prints:
"      10 repetitions took   1.039352 sec.
" You can use sequence of |-separated commands under TIM:
"      :10TIM syntax off | syntax on
" This will time ten repetitions of (syntax off | syntax on)
" sequence, not 10 repetitions of "syntax off" followed by
" one untimes "syntax on".
 
install details
Download the script from the link below and
copy it into your ~/.vim/plugin directory.
Create this directory if it does not yet exist.
Restart vim. That's it.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
TimeIt.vim 071014 2007-10-14 7.0 Yakov Lerner With contributions from Andy Wokula. Checksum 105516337
TimeIt.vim 20060729 2006-07-28 7.0 Yakov Lerner Initial upload
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github