Exemplo n.º 1
0
 /**
  * Return a MicroTimeInterval representing the amount of time
  * elapsed between two MicroTime Objects
  *
  * @param \Dux\MicroTime $end
  * @param \Dux\MicroTime $start
  * @return \Dux\MicroTimeInterval
  */
 public static function diff(MicroTime $end, MicroTime $start)
 {
     return new MicroTimeInterval($end->getSeconds() - $start->getSeconds(), $end->getMs() - $start->getMs());
 }