mirror of
https://github.com/sharkdp/hyperfine.git
synced 2024-11-05 05:25:30 +03:00
Change argument order
This commit is contained in:
parent
d27cbceed2
commit
e001530f61
@ -67,15 +67,15 @@ impl<'a> Executor for ShellExecutor<'a> {
|
||||
|
||||
let mut command_builder = self.shell.command();
|
||||
command_builder
|
||||
.arg(if cfg!(windows) { "/C" } else { "-c" })
|
||||
.arg(command.get_command_line())
|
||||
.stdin(Stdio::null())
|
||||
.stdout(stdout)
|
||||
.stderr(stderr)
|
||||
.env(
|
||||
"HYPERFINE_RANDOMIZED_ENVIRONMENT_OFFSET",
|
||||
randomized_environment_offset::value(),
|
||||
)
|
||||
.stdin(Stdio::null())
|
||||
.stdout(stdout)
|
||||
.stderr(stderr);
|
||||
.arg(if cfg!(windows) { "/C" } else { "-c" })
|
||||
.arg(command.get_command_line());
|
||||
|
||||
let wallclock_timer = WallClockTimer::start();
|
||||
let result = execute_and_measure(command_builder)
|
||||
|
Loading…
Reference in New Issue
Block a user