summaryrefslogtreecommitdiffstats
path: root/lib/util/time.h
Commit message (Collapse)AuthorAgeFilesLines
* lib: Create time_basic.[ch]Volker Lendecke2014-07-311-12/+0
| | | | | | | | | Make the two functions that debug.c needs a subsystem of their own. The goal is to put debug.c on a diet. Anybody who wants to use it should not be forced to pull in half of Samba :-) Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* lib: Add timeval_str_bufVolker Lendecke2014-07-311-0/+12
| | | | | | | Similarly to server_id_str_buf it does not do any allocation Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* lib: Align nt_time_to_unix_timespec with unix_timespec_to_nt_timeVolker Lendecke2014-06-301-1/+1
| | | | | | | Both take and return values now Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* lib: Align unix_timespec_to_nt_time with nt_time_to_unix_timespecVolker Lendecke2014-06-301-1/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* lib: Apply const to nt_time_to_unix_timespecVolker Lendecke2014-06-181-1/+1
| | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Wed Jun 18 16:35:26 CEST 2014 on sn-devel-104
* lib-util: add functions to get elapsed from given timespec structsVolker Lendecke2013-12-121-0/+10
| | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* util/time: Remove unnecessary _PUBLIC_ - that's implicit for things in ↵Jelmer Vernooij2011-11-031-44/+40
| | | | header files.
* lib/util: move some timespec helpers from source3 to the toplevelStefan Metzmacher2011-09-231-0/+10
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Sep 23 00:15:31 CEST 2011 on sn-devel-104
* s3-param Remove 'time offset' from smb.confAndrew Bartlett2011-06-111-3/+0
| | | | | | | | | | This strange parameter is apparently very rarely used, and it seems to me that on modern networks, if clients don't have correct clocks and DST offsets, that many other things (Kerberos) start to fail pretty quickly, and time and DST tables tend to be internet delivered anyway. Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sat Jun 11 03:54:45 CEST 2011 on sn-devel-104
* lib/util/time.h: fix licence/copyrightGünther Deschner2011-06-101-1/+6
| | | | Guenther
* lib/util/time.c: timeval_current_ofs_usecRusty Russell2011-06-011-0/+5
| | | | | | | | | | | | | | | 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_msecRusty Russell2011-06-011-0/+5
| | | | | | | | | | 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.cAndrew Bartlett2011-03-011-0/+17
|
* lib/util: add time_mono() for monotonic time a la time()Björn Jacke2010-09-071-0/+5
|
* lib/util: add nsec_time_diff to calulate diffs from timespecsBjörn Jacke2010-08-311-0/+5
|
* lib/util: add function to query the monotonic clock with the required ↵Björn Jacke2010-08-311-0/+5
| | | | fallback to the realtime clock
* lib/util: move TIME_T_MIN/MAX defines into header fileBjörn Jacke2010-01-071-0/+14
|
* Fix use of "time offset" parameter, and add test to make sure I don't break ↵Jelmer Vernooij2008-12-231-0/+3
| | | | it again :-)
* Make sure prototypes are always included, make some functions static andJelmer Vernooij2008-10-201-1/+6
| | | | remove some unused functions.
* Cope with changed signature of http_timestring().Jelmer Vernooij2008-10-111-0/+5
|
* Move lib/util from source4 to top-level libutil.Jelmer Vernooij2008-10-111-0/+232
Conflicts: source4/Makefile