On Oct 21, 2:41 pm, ZyX <[email protected]> wrote: > Reply to message «time a script», > sent 01:08:39 22 October 2010, Friday > BTW, what exactly were you passing as a:fu? If it is a function reference (or > a > string with function name), then you should have used the following function: > function Time(funcref, ...) > let start=reltime() > call call(a:funcref, a:000, {}) > echo reltimestr(reltime(start)) > endfunction
function! RndTest01a(test,bins,times) call Time(RndTest01a(1, 10, 5000)) The function "RndTest01a" in my Timer(fu) returns values as expected but only seems to time the execute a:fu. The "RndTest01a" values and the echo time are not displayed until the test is done, about 11 seconds but shows 0.000138 seconds with the wrapper. I tried your suggestion "Time(funcref, ...)" with several variations, but got errors each time, and still only timed the call call... (~0.000140 seconds). -- 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
