We have now again two functions called h_platform_vasprintf and h_platform_asprintf. On windows they are implemented in terms of vsnprint and the like. On BSD/GNU libraries we use the supplied vasprintf and asprintf.
We use QueryPerformanceCounter which will return realtime, not user time.
This BSD call will have to be implemented on windows. Right now we have a stub that just exits the process.