|  | @@ -57,6 +57,9 @@ namespace Grpc.Core.Internal
 | 
	
		
			
				|  |  |          [DllImport("grpc_csharp_ext.dll")]
 | 
	
		
			
				|  |  |          static extern Timespec gprsharp_inf_past(GPRClockType clockType);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        [DllImport("grpc_csharp_ext.dll")]
 | 
	
		
			
				|  |  | +        static extern Timespec gprsharp_convert_clock_type(Timespec t, GPRClockType targetClock);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          [DllImport("grpc_csharp_ext.dll")]
 | 
	
		
			
				|  |  |          static extern int gprsharp_sizeof_timespec();
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -131,6 +134,14 @@ namespace Grpc.Core.Internal
 | 
	
		
			
				|  |  |                  return tv_nsec;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        /// <summary>
 | 
	
		
			
				|  |  | +        /// Converts the timespec to desired clock type.
 | 
	
		
			
				|  |  | +        /// </summary>
 | 
	
		
			
				|  |  | +        public Timespec ToClockType(GPRClockType targetClock)
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  | +            return gprsharp_convert_clock_type(this, targetClock);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |              
 | 
	
		
			
				|  |  |          /// <summary>
 | 
	
		
			
				|  |  |          /// Converts Timespec to DateTime.
 |