Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 18 lines (17 sloc) 0.63 kb
15d73b2 @inducer Add README
inducer authored
1 * These examples are written in C99. You will need the compiler flag
2 * -std=c99 to compile it.
3 *
4 * To make the timestamp functions and their datatypes available, you need to
5 pass * -D_XOPEN_SOURCE=500 to the compiler.
6 *
7 * If you get this error:
8 * timing-example.c:(.text+0xd9): undefined reference to `clock_gettime'
9 * timing-example.c:(.text+0x108): undefined reference to `clock_gettime'
10 * then you'll need to the -lrt flag, too.
11 *
12 * Summary: Assuming you've saved this file as 'timing-example.c',
13 * use this to compile:
14 *
15 * gcc -std=c99 -D_XOPEN_SOURCE=500 -lrt timing-example.c
16 *
17 * Andreas Kloeckner, 9/3/2012
Something went wrong with that request. Please try again.