ex2.pp 406 B

1234567891011121314151617
  1. Program Example2;
  2. { Program to demonstrate the GetTimeOfDay function. }
  3. Uses linux;
  4. Var TV : TimeVal;
  5. TZ : TimeZone;
  6. begin
  7. GetTimeOfDay (TV);
  8. Writeln ('Seconds : ',tv.sec);
  9. Writeln ('Milliseconds : ',tv.usec);
  10. Writeln ('Minutes west of GMT : ',tz.minuteswest);
  11. Writeln ('Daylight Saving Time : ',tz.dsttime);
  12. Writeln ('Seconds in 1 call : ',GetTimeOfDay);
  13. end.