| Anonymous | Login | Signup for a new account | 2013-05-20 04:30 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
| 0004023 | OCaml | OCaml general | public | 2006-05-13 17:22 | 2006-08-29 16:34 | ||||||
| Reporter | Christophe | ||||||||||
| Assigned To | |||||||||||
| Priority | normal | Severity | feature | Reproducibility | N/A | ||||||
| Status | acknowledged | Resolution | open | ||||||||
| Platform | OS | OS Version | |||||||||
| Product Version | 3.09.2 | ||||||||||
| Target Version | Fixed in Version | ||||||||||
| Summary | 0004023: usleep feature | ||||||||||
| Description | Hello, it would be very nice to have a function usleep in Unix. Now, there is only sleep that waits for a given number of seconds, but most of the time, it is not accurate (what if I need to wait 0.1 sec ?) There is a 'delay' function in Threads, but sometimes, I need to compile without the thread library, due to external constraints... So it would be nice to have a usleep function in Unix, that just waits like sleep, but that take a float argument, or a given number of mili or microseconds... Thank you ! | ||||||||||
| Tags | No tags attached. | ||||||||||
| Attached Files | |||||||||||
Notes |
|
|
(0003644) berke (reporter) 2006-05-17 11:43 |
You can use select: let usleep t = ignore (select [] [] [] t);; |
|
(0003739) n8gray (reporter) 2006-08-24 01:55 |
Great! Include that one-liner in the Unix module and mark the bug fixed. Seriously. Convenience functions make users happy and productive. :) |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2006-05-13 17:22 | Christophe | New Issue | |
| 2006-05-17 11:43 | berke | Note Added: 0003644 | |
| 2006-08-24 01:55 | n8gray | Note Added: 0003739 | |
| 2006-08-29 16:34 | doligez | Status | new => acknowledged |
| Copyright © 2000 - 2011 MantisBT Group |