File: 09_opera.pl

package info (click to toggle)
libtm-perl 1.56-7
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,692 kB
  • ctags: 1,084
  • sloc: perl: 35,266; makefile: 48
file content (21 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (3)
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;