File: 09_opera.pl

package info (click to toggle)
libtm-perl 1.56-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,852 kB
  • sloc: perl: 35,234; sh: 565; makefile: 47
file content (21 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use File::Slurp;

use TM;
my $tm = new TM;
use TM::Serializable::XTM;
TM::Serializable::XTM::deserialize ($tm, join "", read_file ("maps/opera.xtm"));

__END__

use Time::HiRes qw(gettimeofday tv_interval);

use TM::Materialized::XTM;
my $t0 = [gettimeofday];
my $tm = new TM::Materialized::XTM (file => "maps/opera.xtm")->sync_in;
# NOTE: I do not bundle the opera.xtm because of its licencing restrictions

warn tv_interval ( $t0 );

use Data::Dumper;
#warn Dumper $tm;