#43413 - Ultima2876 - Mon May 23, 2005 5:42 am
How fast are these if/else conditionals? As in, anyone know how many processor cycles they use? Or do you need more information, like specifically what the if contains?
Something like:
or
If I'm doing a lot of these (a few hundred) would it be wasting a lot of cycles, or are they just single cycle or two-cycle operations?
Thanks.
Something like:
Code: |
if(temp >= cold)
{ //whatever } else { //whatever } |
or
Code: |
if(temp >= 75)
{ //whatever } else { //whatever } |
If I'm doing a lot of these (a few hundred) would it be wasting a lot of cycles, or are they just single cycle or two-cycle operations?
Thanks.