You are here

public static function RealisticDummyContentRecipe::stopTime in Realistic Dummy Content 7.2

Same name and namespace in other branches
  1. 8.2 api/src/includes/RealisticDummyContentRecipe.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentRecipe::stopTime()
  2. 3.x api/src/includes/RealisticDummyContentRecipe.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentRecipe::stopTime()

Get the end time.

2 calls to RealisticDummyContentRecipe::stopTime()
RealisticDummyContentRecipe::newEntities in api/src/includes/RealisticDummyContentRecipe.php
Create new entities.
RealisticDummyContentRecipe::run in api/src/includes/RealisticDummyContentRecipe.php
Run this recipe.

File

api/src/includes/RealisticDummyContentRecipe.php, line 137

Class

RealisticDummyContentRecipe
Abstract base "recipe" class.

Namespace

Drupal\realistic_dummy_content_api\includes

Code

public static function stopTime($id) {
  $timer = Framework::instance()
    ->timerStop(serialize($id));
  return $timer['time'];
}