Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Using module with c code in perl program.

by scorpio17 (Canon)
on Dec 21, 2015 at 19:57 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1150882]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (None)
    As of 2024-04-25 01:55 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found