Beispiel #1
0
 function addendIsDuration(time\duration $duration)
 {
     $micro = self::microSecondIsZeroInMicro(self::secondIsZeroInMicro(clone $this));
     $duration->recipientOfSecondIs($micro);
     $duration->recipientOfMicroSecondIs($micro);
     $micro->microtime = $micro->microtime->addendIsInteger($micro->second);
     $micro->microtime = $micro->microtime->addendIsFloat((new risingsun\ofloat(1.0E-6))->factorIsInteger($micro->microSecond));
     return self::secondIsZeroInMicro(self::microSecondIsZeroInMicro($micro));
 }
Beispiel #2
0
 function outputOfDurationIs(time\duration $duration, output $output)
 {
     $formater = clone $this;
     $formater->output = $output;
     $formater->secondSeparator = new output\stream();
     $duration->recipientOfSecondIs($formater);
     $duration->recipientOfMicroSecondIs($formater);
     $formater->output->outputStreamIs(new output\stream('n/a'));
     return $this;
 }
Beispiel #3
0
 function benchDurationIs(time\duration $duration)
 {
     $this->duration = $duration->addendIsDuration($this->duration);
     return $this;
 }