Init a new Timespec from s seconds and ns nanoseconds.

Property definitions

realtime $ Timespec :: new
	# Init a new Timespec from `s` seconds and `ns` nanoseconds.
	new ( s, ns : Int ) `{
		struct timespec* tv = malloc( sizeof(struct timespec) );
		tv->tv_sec = s; tv->tv_nsec = ns;
		return tv;
	`}
lib/realtime/realtime.nit:61,2--66,3