lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> But it appears that on Windows the C function clock()
> returns wall-time instead of CPU-time:
> https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/clock?view=vs-2019
> 
> [...]
> 
> It looks like it's Microsoft's fault
> to incorrectly implement C run-time function.

"It looks like" is an euphemism. They explicitly say that the function
is incorrect:

  Note that this function does not strictly conform to ISO C, which
  specifies net CPU time as the return value.

("does not strictly conform" is another euphemism :-)

-- Roberto