fpc/docs/linuxex/ex2.pp
1998-03-25 11:26:49 +00:00

18 lines
409 B
ObjectPascal

Program Example2;
{ Program to demonstrate the GetTimeOfDay function. }
Uses linux;
Var TV : TimeVal;
TZ : TimeZone;
begin
GetTimeOfDay (TV,TZ);
Writeln ('Seconds : ',tv.sec);
Writeln ('Milliseconds : ',tv.usec);
Writeln ('Minutes west of GMT : ',tz.minuteswest);
Writeln ('Daylight Saving Time : ',tz.dsttime);
Writeln ('Seconds in 1 call : ',GetTimeOfDay);
end.