This commit is contained in:
vcoppe committed 2026-10-02 18:06:45 +02:00
1 parent 5868595a6c
commit b7db73cf77
18 files changed
+394 -133

No files matched your search

-6
View File
@@ -11,9 +11,3 @@ pub struct Trackpoint {
pub power: Option<u16>,
// TODO OSM data? or store intervals at a higher level?
}
impl Trackpoint {
pub fn time_diff(&self, other: &Trackpoint) -> Option<i64> {
self.time.zip(other.time).map(|(t1, t2)| t1 - t2)
}
}