lect18 - CMSC 216 Introduction to Computer Systems Lecture...

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 4 extension – don’t procrastinate – Will overlap a bit w/ Project 5 • 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 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
IME M EASUREMENT Section 16.3, Reek 3 Date and time functions clock_t clock(void); – returns the process time (in CPU clock ticks) 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 seconds since the epoch 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 struct tm *gmtime(time_t val);
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

lect18 - CMSC 216 Introduction to Computer Systems Lecture...

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