mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 16:11:33 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			406 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			406 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
| Program Example2;
 | |
| 
 | |
| { Program to demonstrate the GetTimeOfDay function. }
 | |
| 
 | |
| Uses linux;
 | |
| 
 | |
| Var TV : TimeVal;
 | |
|     TZ : TimeZone;
 | |
| 
 | |
| begin
 | |
|   GetTimeOfDay (TV);
 | |
|   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.
 | 
