nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Rope api
[nit.git]
/
lib
/
realtime.nit
diff --git
a/lib/realtime.nit
b/lib/realtime.nit
index
3ae6346
..
fd0fe86
100644
(file)
--- a/
lib/realtime.nit
+++ b/
lib/realtime.nit
@@
-21,7
+21,7
@@
in "C header" `{
#include <time.h>
`}
#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;
new ( s, ns : Int ) `{
struct timespec* tv = malloc( sizeof(struct timespec) );
tv->tv_sec = s; tv->tv_nsec = ns;