CURL (http://curl.haxx.se/) has a platform-independent version of gettimeofday and related helpers. We should integrate it. It will make the StopWatch class in testkjs work on Windows. Long-term, it may also provide a simpler way to write platform independent date code.
Created attachment 7427 [details] Quick fix to make StopWatch available on Windows
Comment on attachment 7427 [details] Quick fix to make StopWatch available on Windows OK, but let's keep this bug open, because we still would like to integrate the CURL code.
Maybe the CURL code will fix the issue on Windows where localtime returns 0 for invalid dates which causes lots of crashes with the unchecked dereferencing used all over the place.
This patch is missing a ChangeLog as well as copyright. Please include those in future patches. I'll add the missing information as I land this time.
Reopening. See my comment above.
This bug has been stale for over a year. The windows port works. :) I think this can be closed.