Fungsi pustaka pada bahasa c difftime() mengembalikan nilai berbeda, dalam hitungan waktu antara waktu mulai dan waktu akhir. (ending time-starting time)
// It is present in time.h header file
#include
Sintak :
double difftime(time_t time2, time_t time1);
Parameter:
time1 : Lower bound of the time interval
whose length is calculated.
time2 : Higher bound of the time interval
whose length is calculated.
Return value :
Returns the difference between time1 and
time2 (as measured in seconds).
Output:
Difference is 6.00 seconds
Tidak ada komentar:
Posting Komentar
Respon komentar 7 x 24 jam, so please be patient :D