ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/dm-support.ext
(Generate patch)

Comparing deliantra/server/ext/dm-support.ext (file contents):
Revision 1.36 by root, Fri Nov 9 20:37:57 2012 UTC vs.
Revision 1.37 by root, Sun Nov 11 02:38:10 2012 UTC

60 select $fh; 60 select $fh;
61 61
62 # compile first, then execute, as Coro does not support switching in eval string 62 # compile first, then execute, as Coro does not support switching in eval string
63 my $cb = eval "sub { $cmd \n}"; 63 my $cb = eval "sub { $cmd \n}";
64 64
65 my $t1 = Time::HiRes::time; 65 my $t1 = EV::time;
66 my @res = $@ ? () : eval { $cb->() }; 66 my @res = $@ ? () : eval { $cb->() };
67 my $t2 = Time::HiRes::time; 67 my $t2 = EV::time;
68 68
69 print "\n", 69 print "\n",
70 "command: '$cmd'\n", 70 "command: '$cmd'\n",
71 "execution time: ", $t2 - $t1, "\n"; 71 "execution time: ", $t2 - $t1, "\n";
72 print "evaluation error: $@\n" if $@; 72 print "evaluation error: $@\n" if $@;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines