diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 19:38:05 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 19:39:05 +0900 |
| commit | 26bd490e6f9dc8476bc2cc9902f18692d8715df4 (patch) | |
| tree | 0c56c840527aa279fdcfda24a8aa79072ba0dec7 /crates/shirabe/src/console | |
| parent | 1deb0b88edd455142160c0a03c094422907f2df6 (diff) | |
| download | php-shirabe-26bd490e6f9dc8476bc2cc9902f18692d8715df4.tar.gz php-shirabe-26bd490e6f9dc8476bc2cc9902f18692d8715df4.tar.zst php-shirabe-26bd490e6f9dc8476bc2cc9902f18692d8715df4.zip | |
feat(php-shim): implement microtime
Drop the get_as_float parameter; the Rust shim always returns f64.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/console')
| -rw-r--r-- | crates/shirabe/src/console/application.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe/src/console/application.rs b/crates/shirabe/src/console/application.rs index 94f904f..01515a1 100644 --- a/crates/shirabe/src/console/application.rs +++ b/crates/shirabe/src/console/application.rs @@ -911,7 +911,7 @@ impl Application { .borrow() .has_parameter_option(PhpMixed::from(vec!["--profile"]), false) { - start_time = Some(microtime(true)); + start_time = Some(microtime()); // PHP: $this->io->enableDebugging($startTime). // TODO(phase-c): enableDebugging exists only on ConsoleIO, not on IOInterface, // and self.io is still the NullIO because the ConsoleIO construction above is @@ -951,7 +951,7 @@ impl Application { "<info>Memory usage: {}MiB (peak: {}MiB), time: {}s</info>", round((memory_get_usage() as f64) / 1024.0 / 1024.0, 2), round((memory_get_peak_usage(false) as f64) / 1024.0 / 1024.0, 2), - round(microtime(true) - st, 2) + round(microtime() - st, 2) )); } |
