On 6/14/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
Eric Arnold wrote:
> What should be returned by the reltime() call? If Vim script only
> handles "int" types, the values returned are apparently inconsisent.
> Am I missing something, or is reltime() on windows currently useful
> only for short delta times?
reltime() returns a list to be able to store more than one number.
You shouldn't use the return value for anything but reltime() and
reltimestr(), since they depend on the system.
I don't know what the max value it will try to store from the 8 byte
into the 4 byte "int". Perhaps it isn't a problem, though its a bit
odd how it is translating back and forth from signed to unsigned
values, i.e. the internal value is like
2847610916
whereas the value returned in Vim is:
-1447356380
though when it is delivered back to "reltime()" it seems to be handled
correctly ("low part" must be unsigned -- where are the windows header
file, btw?).
.