in reply to Argument "CLOCK_REALTIME" isn't numeric in subroutine entry
You will need to import CLOCK_REALTIME too:
use Time::HiRes qw( clock_gettime clock_getres CLOCK_REALTIME );
Also see the EXAMPLES section of Time::HiRes, where the correct import is shown.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Argument "CLOCK_REALTIME" isn't numeric in subroutine entry
by thanos1983 (Parson) on Sep 18, 2014 at 11:33 UTC |