seconds = (int) $seconds; $this->microseconds = (int) $microseconds; $this->group = $group; $this->lap = $lap; $this->total = $total; $this->i = $i; if ($i) { $this->avg = $total / $i; } $this->mem = \memory_get_usage(); $this->mem_real = \memory_get_usage(true); $this->mem_peak = \memory_get_peak_usage(); $this->mem_peak_real = \memory_get_peak_usage(true); } public function getDateTime() { return DateTime::createFromFormat('U u', $this->seconds.' '.\str_pad($this->microseconds, 6, '0', STR_PAD_LEFT)); } }