Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Using module with c code in perl program.

by scorpio17 (Canon)
on Dec 21, 2015 at 19:57 UTC ( #1150882=note: print w/replies, xml ) Need Help??


in reply to Using module with c code in perl program.

In the perl portion, I think this line:
$elapsed_c = tv_interval($start_time,$end_time);
should be this:
$elapsed_c = tv_interval($start_time_c,$end_time_c);
and
$elapsed_perl = tv_interval($start_time,$end_time);
should be:
$elapsed_perl = tv_interval($start_time_perl,$end_time_perl);
Note that $start_time and $end_time are never declared, nor initialized, and a "use strict;" at the top would have helped you spot this.

Replies are listed 'Best First'.
Re^2: Using module with c code in perl program.
by k0shinus (Novice) on Dec 22, 2015 at 08:36 UTC

    Really this is mistake, thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1150882]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2019-10-20 03:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?