mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-27 07:53:43 +02:00
18 lines
438 B
ObjectPascal
18 lines
438 B
ObjectPascal
Program Example2;
|
|
|
|
{ Program to demonstrate the GetTimeOfDay function. }
|
|
|
|
Uses BaseUnix,Unix;
|
|
|
|
Var TV : TimeVal;
|
|
TZ : TimeZone;
|
|
|
|
begin
|
|
fpGetTimeOfDay (@TV,@tz);
|
|
Writeln ('Seconds : ',tv.tv_sec);
|
|
Writeln ('Milliseconds : ',tv.tv_usec);
|
|
Writeln ('Minutes west of GMT : ',tz.minuteswest);
|
|
Writeln ('Daylight Saving Time : ',tz.dsttime);
|
|
Writeln ('Seconds in 1 call : ',fpGetTimeOfDay(nil,nil));
|
|
end.
|