i've to make a program in c/c++ through which we can find out the power consumed by any algorithm(basically a c/c++ program).... here we are assuming we know the specific processor we are working on....can u please tell me the functions or commands that can be used to do so and the logic behind it.... if there's any paper or website where info of this sort is available please let me kno...if theres no way to measure power consumption for any generic processor then we can take intel pentium 4 as the processor on which we have to measure the power consumed..