18 Process Control and Time

18 Process Control and Time - !"#!"#$ CMSC 216...

Info iconThis 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
Background image of page 1

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

View Full DocumentRight 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);
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

18 Process Control and Time - !"#!"#$ CMSC 216...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online