using System;
using System.Linq;
public class Program
{
public static void Main()
int[] timestamps = new int[] { 1, 2, 3, 4, 5 };
var averageDiff = timestamps.Zip(timestamps.Skip(1), (x, y) => y - x).Average();
Console.WriteLine(averageDiff);
}