pep8analysis: add copyright info for viz.js
[nit.git] / lib / realtime.nit
index cb62251..fd0fe86 100644 (file)
@@ -11,7 +11,7 @@
 # another product.
 
 # Provides the Clock utility class to keep time of real time flow
-module realtime
+module realtime is c_linker_option("-lrt")
 
 in "C header" `{
 #ifdef _POSIX_C_SOURCE
@@ -21,7 +21,7 @@ in "C header" `{
 #include <time.h>
 `}
 
-extern Timespec `{struct timespec*`}
+extern class Timespec `{struct timespec*`}
        new ( s, ns : Int ) `{
                struct timespec* tv = malloc( sizeof(struct timespec) );
                tv->tv_sec = s; tv->tv_nsec = ns;