home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_11 / 607.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-19  |  871KB  |  2550x3300
Labels: book | collection
OCR: 11.1 Introduction to the Library 607 The program consists of the single function ma in) The executable code consists of two if statements: one to demonstrate the calls to time ct ime ( and loca + ime () and one to demonstrate the library function clock and dis- play the processor time used by the program. Note 1:The file time.h must be included. It contains type declarations, constant definitions and function prototypes for the time and date functions. In particular, the declarations of the types ime Lock and st ruct tm are included Note 2 The variable t1 must be declared of type time T since it will hold the value returned by time The variable ticks declared to be type c Lock to agree with the value returned by clock The variable tptr will point to the value returned by local time Note 3 ...