| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 14 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function run(MeasurementStore $store, array $data) |
||
| 39 | { |
||
| 40 | $connection = array_get($data, 'connection'); |
||
| 41 | $key = array_get($data, 'key'); |
||
| 42 | |||
| 43 | $database = $this->manager->getConnection($connection); |
||
| 44 | |||
| 45 | $timerStart = microtime(true); |
||
| 46 | $database->select('SELECT 1'); |
||
| 47 | $timerEnd = microtime(true); |
||
| 48 | $time = round(($timerEnd - $timerStart) * 1000, 4); |
||
| 49 | |||
| 50 | $store->storeTimer($key, $time . '|ms'); |
||
| 51 | } |
||
| 52 | } |
||
| 53 |