File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -80,16 +80,13 @@ public static function resetAll(): void {
80
80
*
81
81
* @param string $key The key that the timer was started with. Default value is
82
82
* "default" throughout the class.
83
- * @param string $format
83
+ * @param string $format The default format is milliseconds. See the class constants for additional
84
+ * formats.
84
85
*
85
- * @return mixed The formatted time.
86
+ * @return mixed The formatted time, formatted by the formatter string passed for $format .
86
87
* @throws \LogicException
87
- * @see \Ayesh\PHP_Timer\Timer::start() was called with. If the timer was not
88
- * started, a \LogicException will be thrown.
89
- *
90
- * The default format is milliseconds. See the class constants for additional
91
- * formats.
92
- *
88
+ * If the timer was not started, a \LogicException will be thrown. Use @see \Ayesh\PHP_Timer\Timer::start()
89
+ * to start a timer.
93
90
*/
94
91
public static function read (string $ key = 'default ' , $ format = self ::FORMAT_MILLISECONDS ) {
95
92
if (isset (self ::$ timers [$ key ])) {
You can’t perform that action at this time.
0 commit comments