Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | lib/util/time.c: timeval_current_ofs_usec | Rusty Russell | 2011-06-01 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | Several places want "microseconds from current time", and several were simply handing "usecs" values which could be over a million. Using a helper to do this is safer and more readable. I didn't replace any obviously correct callers (ie. constants). I also renamed wait_nsec in source3/lib/util_sock.c; it's actually microseconds not nanoseconds (introduced with this code in Volker's 19b783cc Async wrapper for open_socket_out_send/recv). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | ||||
* | lib/util/time.c: timeval_current_ofs_msec | Rusty Russell | 2011-06-01 | 1 | -0/+9 |
| | | | | | | | | | | Several places want "milliseconds from current time", and several were simply doing "msec * 1000" which can (and does in one place) result in a usec value over 1 a million. Using a helper to do this is safer and more readable. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | ||||
* | lib/util/time: Merge time functions from source3/lib/time.c | Andrew Bartlett | 2011-03-01 | 1 | -0/+59 |
| | |||||
* | lib/util/time.c - make the "strftime" output locale independant ("%c" is not) | Matthias Dieter Wallnöfer | 2010-12-22 | 1 | -5/+4 |
| | | | | So that it also works on Solaris. | ||||
* | Fix a typo | Volker Lendecke | 2010-09-15 | 1 | -1/+1 |
| | |||||
* | Ensure incoming timespec values correctly wrap at nsecs. | Jeremy Allison | 2010-09-14 | 1 | -0/+7 |
| | | | | Jeremy. | ||||
* | lib/util: add time_mono() for monotonic time a la time() | Björn Jacke | 2010-09-07 | 1 | -0/+21 |
| | |||||
* | lib/util: add nsec_time_diff to calulate diffs from timespecs | Björn Jacke | 2010-08-31 | 1 | -0/+9 |
| | |||||
* | lib/util: add function to query the monotonic clock with the required ↵ | Björn Jacke | 2010-08-31 | 1 | -0/+10 |
| | | | | fallback to the realtime clock | ||||
* | lib/util: move TIME_T_MIN/MAX defines into header file | Björn Jacke | 2010-01-07 | 1 | -14/+0 |
| | |||||
* | Fix use of "time offset" parameter, and add test to make sure I don't break ↵ | Jelmer Vernooij | 2008-12-23 | 1 | -1/+4 |
| | | | | it again :-) | ||||
* | Cope with changed signature of http_timestring(). | Jelmer Vernooij | 2008-10-11 | 1 | -20/+108 |
| | |||||
* | Move lib/util from source4 to top-level libutil. | Jelmer Vernooij | 2008-10-11 | 1 | -0/+622 |
Conflicts: source4/Makefile |