| @@ -7,9 +7,9 @@ | ||
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | namespace ElasticPress\Command; |
| 10 | 10 | |
| 11 | -use \WP_CLI; | |
| 11 | +use WP_CLI; | |
| 12 | 12 | |
| 13 | 13 | if ( ! defined( 'ABSPATH' ) ) { |
| 14 | 14 | exit; // Exit if accessed directly. |
| 15 | 15 | } |
| @@ -61,9 +61,9 @@ | ||
| 61 | 61 | * @return float Time spent so far |
| 62 | 62 | */ |
| 63 | 63 | public static function timer_stop( $precision = 3 ) { |
| 64 | 64 | $diff = microtime( true ) - self::$time_start; |
| 65 | - return (float) number_format( (float) $diff, $precision ); | |
| 65 | + return (float) number_format( (float) $diff, $precision, '.', '' ); | |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | 69 | * Starts the timer. |