C# 如何获取windows phone 7 GPS时间跨度差异

C# 如何获取windows phone 7 GPS时间跨度差异,c#,windows-phone-7,time,C#,Windows Phone 7,Time,我正在建立一个程序,根据用户的速度执行某些操作。 是否有方法获取自上次位置_更改()以来经过的总秒数? 我想这和timestamp变量有关。 但即使我这样做了 TimeSpan offset = e.Position.Timestamp - lastTimestamp; 我不知道如何处理offest变量。如果你认为地球是球体的话,有没有办法得到总秒数?< /P> < P>:< /P> x = earthRadius * cos(latitude) * cos(longitude); y = e

我正在建立一个程序,根据用户的速度执行某些操作。 是否有方法获取自上次位置_更改()以来经过的总秒数? 我想这和timestamp变量有关。 但即使我这样做了

TimeSpan offset = e.Position.Timestamp - lastTimestamp;

我不知道如何处理offest变量。如果你认为地球是球体的话,有没有办法得到总秒数?< /P> < P>:< /P>
x = earthRadius * cos(latitude) * cos(longitude);
y = earthRadius * -sin(latitude);
z = earthRadius * cos(latitude) * sin(longitude);
坐标系的中心是地球的中心