Add script to hog cpu for given time
This commit is contained in:
parent
e3c6f75cfd
commit
e78b9530ef
|
@ -0,0 +1,10 @@
|
||||||
|
#!/usr/bin/perl
|
||||||
|
use v5.20;
|
||||||
|
use warnings;
|
||||||
|
|
||||||
|
use Time::HiRes qw(time);
|
||||||
|
my $t0 = time;
|
||||||
|
for (;;) {
|
||||||
|
my $dt = time - $t0;
|
||||||
|
last if $dt > $ARGV[0];
|
||||||
|
}
|
Loading…
Reference in New Issue