mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-29 20:46:33 +01:00
+ implemented GetMsCount in the DOS unit for WASI
This commit is contained in:
parent
074ce9c50f
commit
e19fcd2b8b
@ -227,7 +227,13 @@ End;
|
|||||||
|
|
||||||
|
|
||||||
function GetMsCount: int64;
|
function GetMsCount: int64;
|
||||||
|
var
|
||||||
|
NanoSecsPast: __wasi_timestamp_t;
|
||||||
begin
|
begin
|
||||||
|
if __wasi_clock_time_get(__WASI_CLOCKID_REALTIME,1000000,@NanoSecsPast)=__WASI_ERRNO_SUCCESS then
|
||||||
|
GetMsCount:=NanoSecsPast div 1000000
|
||||||
|
else
|
||||||
|
GetMsCount:=0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user