You are here

public function MarkdownBenchmark::__construct in Markdown 3.0.x

MarkdownBenchmark constructor.

Parameters

string $type: The type of benchmark.

\DateTime $start: The start time.

\DateTime $end: The end end time.

mixed $result: The result of what was benchmarked.

File

src/MarkdownBenchmark.php, line 90

Class

MarkdownBenchmark
Class MarkdownBenchmark.

Namespace

Drupal\markdown

Code

public function __construct($type, \DateTime $start, \DateTime $end, $result = NULL) {
  $this->type = $type;
  $this->start = $start;
  $this->end = $end;
  $this->diff = $start
    ->diff($end);
  $this->result = $result;
}