FoRUmS

a questionabout using the time.h library to get the execution time of the oftware program  

Page 2 / 2
 

dchaver
(@dchaver)
Active Member
Joined: 7 months ago
Posts: 15
03/06/2021 3:54 pm  

Hi @my123,

I've run your program and, as you say, it looks to be working alright but then the value stored in result is wrong (see screenshot attached). The log and sqrt functions work with double data type (see https://www.programiz.com/c-programming/library-function/math.h/log and https://www.programiz.com/c-programming/library-function/math.h/sqrt ). Have you checked if the problem could be related with that? Let me know this before I look at your program in more detail.

Best regards

This post was modified 3 weeks ago by dchaver

ReplyQuote
Page 2 / 2