difftime

Calculates the difference between two arithmetic time values

```#include <time.h>
double difftime ( time_t time2 , time_t time1  );
```

The difftime( ) function returns the difference between two time values, time2 - time1, as a number of seconds. While difftime( ) has the return type double, its arguments have the type time_t. The time_t type is usually, but not necessarily, defined as an integer type such as long or unsigned long.

A common way to obtain the argument values passed to difftime( ) is by successive calls to the time( ) function, which returns the current time as a single arithmetic value.

#### Example

See the sample program for clock( ) in this chapter.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8366443,"math_prob":0.99666774,"size":751,"snap":"2019-13-2019-22","text_gpt3_token_len":173,"char_repetition_ratio":0.17804551,"word_repetition_ratio":0.0,"special_character_ratio":0.24766977,"punctuation_ratio":0.14925373,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98094064,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-03-23T14:21:53Z\",\"WARC-Record-ID\":\"<urn:uuid:aa8f15f4-ecf2-41e3-b262-69bc4ede132a>\",\"Content-Length\":\"3893\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ec34cba9-e48f-4682-bf77-7c3c6ac86f59>\",\"WARC-Concurrent-To\":\"<urn:uuid:bf0c088e-134c-45ad-8811-dcab81f6d388>\",\"WARC-IP-Address\":\"109.75.178.101\",\"WARC-Target-URI\":\"http://books.gigatux.nl/mirror/cinanutshell/0596006977/cinanut-CHP-17-49.html\",\"WARC-Payload-Digest\":\"sha1:RJ7KDEYYDZUXFVN7R4B4MXBQ36AXHO3N\",\"WARC-Block-Digest\":\"sha1:IKIAD63NY67WWV4IVDEL66AVH3OKE33E\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-13/CC-MAIN-2019-13_segments_1552912202872.8_warc_CC-MAIN-20190323141433-20190323163433-00262.warc.gz\"}"}