> > On 08-07-2015 05:33, Virendra Kumar Pathak wrote: >> >> >> I am using below snippet code and linux 'time' command to calculate the time. >> void sin_func(void) >> { >> double incr = 0.732; >> double result, count = 0.0; >> >> printf("%s\n", __func__); >> >> while (count < 105414350.0) { >> result = sin(count); >> count += incr; >> } >> } >> >> Thanks.
Also keep in mind that evaluating this snippet you are also evaluating not printf calls, which not only uses another glibc functions but also issues syscalls. >> >> -- >> with regards, >> Virendra Kumar Pathak >> >> >> _______________________________________________ >> linaro-toolchain mailing list >> linaro-toolchain@lists.linaro.org >> https://lists.linaro.org/mailman/listinfo/linaro-toolchain >> _______________________________________________ linaro-toolchain mailing list linaro-toolchain@lists.linaro.org https://lists.linaro.org/mailman/listinfo/linaro-toolchain