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