diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-10-26 13:14:19 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-10-26 13:14:19 -0400 |
commit | 6ce3ea3d071a1ed56337883a5670ef848c30c558 (patch) | |
tree | 89206b8c673e43eff2f1a497e62c95a7eb196d9c /pts-core/test-libraries | |
parent | d45f32582f4b7bc02bb8cbc191e07d8e4f96aa33 (diff) | |
download | phoronix-test-suite-upstream-6ce3ea3d071a1ed56337883a5670ef848c30c558.tar.gz phoronix-test-suite-upstream-6ce3ea3d071a1ed56337883a5670ef848c30c558.tar.xz phoronix-test-suite-upstream-6ce3ea3d071a1ed56337883a5670ef848c30c558.zip |
pts-core: Move timer-start.sh and timer-stop.sh from pts-core/scripts/
to pts-core/test-libraries/
Diffstat (limited to 'pts-core/test-libraries')
-rwxr-xr-x | pts-core/test-libraries/timer-start.sh | 3 | ||||
-rwxr-xr-x | pts-core/test-libraries/timer-stop.sh | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/pts-core/test-libraries/timer-start.sh b/pts-core/test-libraries/timer-start.sh new file mode 100755 index 0000000..f6e871e --- /dev/null +++ b/pts-core/test-libraries/timer-start.sh @@ -0,0 +1,3 @@ +#!/bin/sh +$PHP_BIN -r "file_put_contents(getenv(\"HOME\") . \"/pts-timer\", microtime(true));" + diff --git a/pts-core/test-libraries/timer-stop.sh b/pts-core/test-libraries/timer-stop.sh new file mode 100755 index 0000000..72e8cff --- /dev/null +++ b/pts-core/test-libraries/timer-stop.sh @@ -0,0 +1,3 @@ +#!/bin/sh +$PHP_BIN -r "\$start_time = @file_get_contents(getenv(\"HOME\") . \"/pts-timer\"); \$end_time = microtime(true); \$time_diff = \$end_time - \$start_time; if(\$time_diff < 3) { \$time_diff = 0; } file_put_contents(getenv(\"HOME\") . \"/pts-timer\", \$time_diff); echo \"\n\nTest-Time: \$time_diff Seconds\n\";" + |