I have used reltime() inside a function and it works.

I thought to make a wrapper for the timer, but it only returns the
time to run the line with execute and not the passed function.

function! Time(fu)
  let start = reltime()
  execute a:fu
  echo reltimestr(reltime(start))
endfun

Is there a way to make this work?
-Bill

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to