{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

18 Process Control and Time

18 Process Control and Time - #$ CMSC 216 Introduction to...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
!"#!"## # CMSC 216 Introduction to Computer Systems Lecture 18 Process Control and System-Level I/O Jan Plane & Pete Keleher {jplane,als}@cs.umd.edu Administrivia Project 5 out – don’t procrastinate Read Chapter 10 Don’t forget course projects policy – have to make a good faith effort on all projects before end of semester – that means submit a version that works on at least 75% of public tests CMSC 216 - Wood, Sussman, Herman, Plane 2
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
!"#!"## % T IME M EASUREMENT ( CONT .) Section 16.3, Reek CMSC 216 - Wood, Sussman, Herman, Plane 3 Date and time functions clock_t clock(void); returns the process time since the start of program execution to convert to time, divide by CLOCKS_PER_SEC (also in time.h ) time_t time(time_t *val); – fills val with the current time (in an implementation-dependent format) char *ctime(time_t *val); returns a character representation of the passed time – Example: Sun Oct 28 09:02:48 2007\n\0 double difftime(time_t time1, time_t time2); returns the number of seconds between time1 and time2
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern