Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: method of ID'ing

by Juerd (Abbot)
on Apr 15, 2002 at 07:36 UTC ( [id://159111]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Benchmark: running Time::HiRes::time, time, each for at least 1 CPU se
    +conds...
    Time::HiRes::time:  2 wallclock secs ( 0.82 usr +  0.22 sys =  1.04 CP
    +U) @ 1071260.58/s (n=1114111)
    ...
                           Rate Time::HiRes::time              time
    Time::HiRes::time 1071261/s                --              -41%
    time              1816839/s               70%                --
    
  2. or download this
    ($counter += 1) %= 5;    # 0, 1, 2, 3, 4, 0, 1, 2..4, 0..4, 0..4, ...
    ($counter += 1) %= 256;  # 0..255, 0..255, ...
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found