From 59f8d2082b2687669d0ec55213776456bfde9506 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 7 Oct 2020 07:28:43 -0700 Subject: New function: time-nsec. * configure: Test for clock_gettime, generating HAVE_CLOCK_GETTIME symbol in config.h. * time.c (time_sec_nsec): New function. (time_init): time-nsec intrinsic registered. * time.h (time_sec_nsec): Declared. * txr.1: Documented. --- time.h | 1 + 1 file changed, 1 insertion(+) (limited to 'time.h') diff --git a/time.h b/time.h index e05691a6..b33531d6 100644 --- a/time.h +++ b/time.h @@ -31,6 +31,7 @@ extern val dst_s, gmtoff_s, zone_s; val time_sec(void); val time_sec_usec(void); +val time_sec_nsec(void); val time_string_local(val time, val format); val time_string_utc(val time, val format); val time_fields_local(val time); -- cgit v1.2.3