Skip to content

Commit 9cd316f

Browse files
authored
Update README.md
1 parent ca2b163 commit 9cd316f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ class Kernel extends HttpKernel
4141
];
4242
```
4343

44+
---
45+
4446
By default, the middleware measures only three things, to keep it as light-weight as possible:
4547

4648
- Bootstrap (time before the middleware gets called)
@@ -49,7 +51,7 @@ By default, the middleware measures only three things, to keep it as light-weigh
4951

5052
Once the package is successfully installed, you can see your timing information in the developer tools of your browser. Here's an example from Chrome:
5153

52-
![image](https://user-images.githubusercontent.com/40676515/73973252-d831a980-48e7-11ea-88fc-a606fd5b758a.png)
54+
![CleanShot 2024-03-18 at 13 48 53@2x](https://github.com/beyondcode/laravel-server-timing/assets/26432041/adea40e4-5c34-4aee-9fb7-ad6bac40addc)
5355

5456
## Adding additional measurements
5557

@@ -66,6 +68,9 @@ sleep(5);
6668
ServerTiming::stop('Running expensive task');
6769
```
6870

71+
![CleanShot 2024-03-18 at 13 51 56@2x](https://github.com/beyondcode/laravel-server-timing/assets/26432041/47e9e692-2bce-4449-a7ea-966fa4701cdb)
72+
73+
6974
If you already know the exact time that you want to set as the measured time, you can use the `setDuration` method. The duration should be set as milliseconds:
7075

7176
```php

0 commit comments

Comments
 (0)