# ********** AdapterDemo.pl **********
use strict;
use Adapter;
use Time::HR;

my $t1 = gethrtime();
my $i;
my $j;
for ($i=0; $i<1000; $i++) {
  my $adapter= Adapter->new();
  for ($j=0; $j<10*1000; $j++) {
    $adapter->newOperation();
  }
}
my $t2 = gethrtime();
print (int(($t2-$t1)/1000000))." ";
