Changeset 740 for vendor/current/lib/util/time.h
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/util/time.h
r478 r740 2 2 Unix SMB/CIFS implementation. 3 3 time utility functions 4 4 5 Copyright (C) Andrew Tridgell 1992-2004 6 Copyright (C) Stefan (metze) Metzmacher 2002 7 Copyright (C) Jeremy Allison 2007 8 Copyright (C) Andrew Bartlett 2011 9 5 10 This program is free software; you can redistribute it and/or modify 6 11 it under the terms of the GNU General Public License as published by … … 52 57 53 58 /** 59 a wrapper to preferably get the monotonic time 60 **/ 61 _PUBLIC_ void clock_gettime_mono(struct timespec *tp); 62 63 /** 64 a wrapper to preferably get the monotonic time in s 65 **/ 66 _PUBLIC_ time_t time_mono(time_t *t); 67 68 /** 54 69 interpret an 8 byte "filetime" structure to a time_t 55 70 It's originally in "100ns units since jan 1st 1601" … … 110 125 111 126 /** 127 Return a date and time as a string (optionally with microseconds) 128 129 format is %Y/%m/%d %H:%M:%S if strftime is available 130 **/ 131 132 char *timeval_string(TALLOC_CTX *ctx, const struct timeval *tp, bool hires); 133 134 /** 135 Return the current date and time as a string (optionally with microseconds) 136 137 format is %Y/%m/%d %H:%M:%S if strftime is available 138 **/ 139 char *current_timestring(TALLOC_CTX *ctx, bool hires); 140 141 /** 112 142 return a HTTP/1.0 time string 113 143 **/ … … 116 146 /** 117 147 Return the date and time as a string 148 149 format is %a %b %e %X %Y %Z 118 150 **/ 119 151 _PUBLIC_ char *timestring(TALLOC_CTX *mem_ctx, time_t t); … … 143 175 */ 144 176 _PUBLIC_ int64_t usec_time_diff(const struct timeval *tv1, const struct timeval *tv2); 177 178 /** 179 return (tp1 - tp2) in nanoseconds 180 */ 181 _PUBLIC_ int64_t nsec_time_diff(const struct timespec *tp1, const struct timespec *tp2); 145 182 146 183 /**
Note:
See TracChangeset
for help on using the changeset viewer.