mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-09-10 09:09:17 +02:00
* Fix getting clock time
This commit is contained in:
parent
a897cae63e
commit
705e4c08f5
@ -769,7 +769,7 @@ Var
|
||||
|
||||
begin
|
||||
lowWord:=value;
|
||||
highWord:=0;
|
||||
highWord:=value shr 32;
|
||||
if LittleEndian then
|
||||
begin
|
||||
view.setUint32(ByteOffset+0, lowWord, littleEndian);
|
||||
@ -801,6 +801,7 @@ begin
|
||||
WASI_CLOCK_THREAD_CPUTIME_ID:
|
||||
Result:=TJSDate.Now;
|
||||
end;
|
||||
Result:=Result*1000000
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user