chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] #457: srfi-18 time->seconds not returning seconds.


From: Chicken Trac
Subject: [Chicken-janitors] #457: srfi-18 time->seconds not returning seconds.
Date: Thu, 16 Dec 2010 19:18:03 -0000

#457: srfi-18 time->seconds not returning seconds.
----------------------------+-----------------------------------------------
 Reporter:  alanpost        |       Owner:       
     Type:  defect          |      Status:  new  
 Priority:  major           |   Milestone:  4.7.0
Component:  core libraries  |     Version:  4.6.x
 Keywords:                  |  
----------------------------+-----------------------------------------------
 I'm running chicken from the experimental branch on OpenBSD 4.8.

 I'm using the time-related routines in srfi-18.

 The following program:

 {{{
 $ csi
 #;1> (use srfi-18)
 ; loading library srfi-18 ...
 #;2> (time->seconds (seconds->time 2))
 2000000.0
 }}}

 I would expect the output of the conversion to be symmetrical, where if I
 give (seconds->time) a 2, converting the time back to seconds using
 (time->seconds) should return 2.  (probably 2.0)  Instead this call is
 returning the microseconds.

 I would love to see srfi-18 extended to have a (time->microseconds) and
 (microseconds->time) procedures, as I love having time resolution at this
 scale.  This could also, of course, be fixed by scaling the real number
 returned from these routines.

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/457>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]