Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add README

  • Loading branch information...
commit 15d73b24cbbd844635c9057a82cece57f60a2b2a 1 parent fc40978
@inducer inducer authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 README
View
17 README
@@ -0,0 +1,17 @@
+ * These examples are written in C99. You will need the compiler flag
+ * -std=c99 to compile it.
+ *
+ * To make the timestamp functions and their datatypes available, you need to
+pass * -D_XOPEN_SOURCE=500 to the compiler.
+ *
+ * If you get this error:
+ * timing-example.c:(.text+0xd9): undefined reference to `clock_gettime'
+ * timing-example.c:(.text+0x108): undefined reference to `clock_gettime'
+ * then you'll need to the -lrt flag, too.
+ *
+ * Summary: Assuming you've saved this file as 'timing-example.c',
+ * use this to compile:
+ *
+ * gcc -std=c99 -D_XOPEN_SOURCE=500 -lrt timing-example.c
+ *
+ * Andreas Kloeckner, 9/3/2012
Please sign in to comment.
Something went wrong with that request. Please try again.