Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package util;
- use Mojo::Base qw/Exporter/;
- our @EXPORT_OK = qw/time/;
- BEGIN {
- if (eval 'use EV 4.0; 1') {
- *time = \&EV::time;
- }
- else {
- *time = \&Time::HiRes::Time;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement