Exemple #1
0
 /**
  * Calculate error time, between last through this to next,
  * if this node is removed.  This metric provides for fair thinning
  * (tendency to to result in equal time steps)
  *
  * @param last Point previous in time to this node
  * @param node This node
  * @param next Point succeeding this node
  *
  * @return Time delta if this node is thinned
  */
 static unsigned TimeMetric(const TracePoint &last, const TracePoint &node,
                            const TracePoint &next) {
   return next.DeltaTime(last)
     - std::min(next.DeltaTime(node), node.DeltaTime(last));
 }