Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#457 closed defect (fixed)

srfi-18 time->seconds not returning seconds.

Reported by: Alan Post Owned by:
Priority: major Milestone: 4.9.0
Component: core libraries Version: 4.6.x
Keywords: Cc: alanpost@…
Estimated difficulty:

Description

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.

Change History (4)

comment:1 Changed 14 years ago by Alan Post

Cc: alanpost@… added

comment:2 Changed 14 years ago by felix winkelmann

Resolution: fixed
Status: newclosed

Should be fixed now.

comment:3 Changed 13 years ago by felix winkelmann

Milestone: 4.7.04.8.0

Milestone 4.7.0 deleted

comment:4 Changed 12 years ago by felix winkelmann

Milestone: 4.8.04.9.0

Milestone 4.8.0 deleted

Note: See TracTickets for help on using tickets.