[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Heart defect on Windows since October (#531)
Christoph Thiede
notifications at github.com
Fri Oct 23 19:19:23 UTC 2020
> What's the definition for Time class>>utcMicrosecondClock? It should be primitive 240.
It is. I'm using a fresh trunk image.
> Also, if you write a C program to print out the result of GetSystemTimePreciseAsFileTime, and to convert it to the Smalltalk epoch via WindowsTime / 10 + (microseconds from 1601 to 1901), what does that look like?
Did I mention that my C is very rudimentary? 😅
This is what I wrote:
```c
#include <stdio.h>
#include <windows.h>
int main(void) {
FILETIME ft;
ULARGE_INTEGER ui;
GetSystemTimePreciseAsFileTime(&ft);
ui.LowPart=ft.dwLowDateTime;
ui.HighPart=ft.dwHighDateTime;
printf("%i", ui.QuadPart / 10 - 9467020800000000);
}
```
And it outputs:
```
❯ .\timeTest.exe
718860433
```
Does this help? :-)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/531#issuecomment-715534338
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20201023/32e808ca/attachment.html>
More information about the Vm-dev
mailing list