# ********** ProxyDemo.pl **********
use strict;
use ProductProxy;
use Time::HR;

my $t1 = gethrtime();
my $i;
my $j;
my $k;
for ($i=0; $i<1000; $i++) {
  my $proxy= ProductProxy->new(0);
  for ($j=0; $j<1000; $j++) {
    $proxy->setValue($j);
    $k = $proxy->getValue();
  }
}
my $t2 = gethrtime();
print (int(($t2-$t1)/1000000))." ";
