Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015 Cisco and/or its affiliates. |
| 3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | * you may not use this file except in compliance with the License. |
| 5 | * You may obtain a copy of the License at: |
| 6 | * |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * |
| 9 | * Unless required by applicable law or agreed to in writing, software |
| 10 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | * See the License for the specific language governing permissions and |
| 13 | * limitations under the License. |
| 14 | */ |
| 15 | /* |
| 16 | Copyright (c) 2001, 2002, 2003 Eliot Dresselhaus |
| 17 | |
| 18 | Permission is hereby granted, free of charge, to any person obtaining |
| 19 | a copy of this software and associated documentation files (the |
| 20 | "Software"), to deal in the Software without restriction, including |
| 21 | without limitation the rights to use, copy, modify, merge, publish, |
| 22 | distribute, sublicense, and/or sell copies of the Software, and to |
| 23 | permit persons to whom the Software is furnished to do so, subject to |
| 24 | the following conditions: |
| 25 | |
| 26 | The above copyright notice and this permission notice shall be |
| 27 | included in all copies or substantial portions of the Software. |
| 28 | |
| 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 30 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 31 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 32 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE |
| 33 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
| 34 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
| 35 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 36 | */ |
| 37 | |
| 38 | #ifndef included_time_h |
| 39 | #define included_time_h |
| 40 | |
| 41 | #include <vppinfra/clib.h> |
| 42 | |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 43 | typedef struct |
| 44 | { |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 45 | /* Total run time in clock cycles |
| 46 | since clib_time_init call. */ |
| 47 | u64 total_cpu_time; |
| 48 | |
| 49 | /* Last recorded time stamp. */ |
| 50 | u64 last_cpu_time; |
| 51 | |
| 52 | /* CPU clock frequency. */ |
| 53 | f64 clocks_per_second; |
| 54 | |
| 55 | /* 1 / cpu clock frequency: conversion factor |
| 56 | from clock cycles into seconds. */ |
| 57 | f64 seconds_per_clock; |
| 58 | |
Dave Barach | ba603ba | 2018-11-07 17:40:19 -0500 | [diff] [blame] | 59 | f64 round_to_units; |
| 60 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 61 | /* Time stamp of call to clib_time_init call. */ |
| 62 | u64 init_cpu_time; |
| 63 | |
| 64 | u64 last_verify_cpu_time; |
| 65 | |
| 66 | /* Same but for reference time (if present). */ |
| 67 | f64 last_verify_reference_time; |
| 68 | |
| 69 | u32 log2_clocks_per_second, log2_clocks_per_frequency_verify; |
| 70 | } clib_time_t; |
| 71 | |
| 72 | /* Return CPU time stamp as 64bit number. */ |
| 73 | #if defined(__x86_64__) || defined(i386) |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 74 | always_inline u64 |
| 75 | clib_cpu_time_now (void) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 76 | { |
| 77 | u32 a, d; |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 78 | asm volatile ("rdtsc":"=a" (a), "=d" (d)); |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 79 | return (u64) a + ((u64) d << (u64) 32); |
| 80 | } |
| 81 | |
| 82 | #elif defined (__powerpc64__) |
| 83 | |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 84 | always_inline u64 |
| 85 | clib_cpu_time_now (void) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 86 | { |
| 87 | u64 t; |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 88 | asm volatile ("mftb %0":"=r" (t)); |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 89 | return t; |
| 90 | } |
| 91 | |
| 92 | #elif defined (__SPU__) |
| 93 | |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 94 | always_inline u64 |
| 95 | clib_cpu_time_now (void) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 96 | { |
| 97 | #ifdef _XLC |
| 98 | return spu_rdch (0x8); |
| 99 | #else |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 100 | return 0 /* __builtin_si_rdch (0x8) FIXME */ ; |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 101 | #endif |
| 102 | } |
| 103 | |
| 104 | #elif defined (__powerpc__) |
| 105 | |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 106 | always_inline u64 |
| 107 | clib_cpu_time_now (void) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 108 | { |
| 109 | u32 hi1, hi2, lo; |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 110 | asm volatile ("1:\n" |
| 111 | "mftbu %[hi1]\n" |
| 112 | "mftb %[lo]\n" |
| 113 | "mftbu %[hi2]\n" |
| 114 | "cmpw %[hi1],%[hi2]\n" |
| 115 | "bne 1b\n":[hi1] "=r" (hi1),[hi2] "=r" (hi2),[lo] "=r" (lo)); |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 116 | return (u64) lo + ((u64) hi2 << (u64) 32); |
| 117 | } |
| 118 | |
Brian Brooks | c0379ae | 2018-01-09 16:39:07 -0600 | [diff] [blame] | 119 | #elif defined (__aarch64__) |
| 120 | always_inline u64 |
| 121 | clib_cpu_time_now (void) |
| 122 | { |
| 123 | u64 vct; |
| 124 | /* User access to cntvct_el0 is enabled in Linux kernel since 3.12. */ |
| 125 | asm volatile ("mrs %0, cntvct_el0":"=r" (vct)); |
| 126 | return vct; |
| 127 | } |
| 128 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 129 | #elif defined (__arm__) |
Christophe Fontaine | 9341a1f | 2016-05-13 07:07:28 +0000 | [diff] [blame] | 130 | #if defined(__ARM_ARCH_8A__) |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 131 | always_inline u64 |
| 132 | clib_cpu_time_now (void) /* We may run arm64 in aarch32 mode, to leverage 64bit counter */ |
Christophe Fontaine | fef15b4 | 2016-04-09 12:38:49 +0900 | [diff] [blame] | 133 | { |
| 134 | u64 tsc; |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 135 | asm volatile ("mrrc p15, 0, %Q0, %R0, c9":"=r" (tsc)); |
Christophe Fontaine | fef15b4 | 2016-04-09 12:38:49 +0900 | [diff] [blame] | 136 | return tsc; |
| 137 | } |
Christophe Fontaine | 9341a1f | 2016-05-13 07:07:28 +0000 | [diff] [blame] | 138 | #elif defined(__ARM_ARCH_7A__) |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 139 | always_inline u64 |
| 140 | clib_cpu_time_now (void) |
Christophe Fontaine | 9341a1f | 2016-05-13 07:07:28 +0000 | [diff] [blame] | 141 | { |
| 142 | u32 tsc; |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 143 | asm volatile ("mrc p15, 0, %0, c9, c13, 0":"=r" (tsc)); |
| 144 | return (u64) tsc; |
Christophe Fontaine | 9341a1f | 2016-05-13 07:07:28 +0000 | [diff] [blame] | 145 | } |
Christophe Fontaine | fef15b4 | 2016-04-09 12:38:49 +0900 | [diff] [blame] | 146 | #else |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 147 | always_inline u64 |
| 148 | clib_cpu_time_now (void) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 149 | { |
| 150 | u32 lo; |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 151 | asm volatile ("mrc p15, 0, %[lo], c15, c12, 1":[lo] "=r" (lo)); |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 152 | return (u64) lo; |
| 153 | } |
Christophe Fontaine | fef15b4 | 2016-04-09 12:38:49 +0900 | [diff] [blame] | 154 | #endif |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 155 | |
| 156 | #elif defined (__xtensa__) |
| 157 | |
| 158 | /* Stub for now. */ |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 159 | always_inline u64 |
| 160 | clib_cpu_time_now (void) |
| 161 | { |
| 162 | return 0; |
| 163 | } |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 164 | |
| 165 | #elif defined (__TMS320C6X__) |
| 166 | |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 167 | always_inline u64 |
| 168 | clib_cpu_time_now (void) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 169 | { |
| 170 | u32 l, h; |
| 171 | |
| 172 | asm volatile (" dint\n" |
| 173 | " mvc .s2 TSCL,%0\n" |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 174 | " mvc .s2 TSCH,%1\n" " rint\n":"=b" (l), "=b" (h)); |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 175 | |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 176 | return ((u64) h << 32) | l; |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 177 | } |
| 178 | |
Carl Smith | 28d4271 | 2018-07-26 15:45:28 +1200 | [diff] [blame] | 179 | #elif defined(_mips) && __mips == 64 |
| 180 | |
| 181 | always_inline u64 |
| 182 | clib_cpu_time_now (void) |
| 183 | { |
| 184 | u64 result; |
| 185 | asm volatile ("rdhwr %0,$31\n":"=r" (result)); |
| 186 | return result; |
| 187 | } |
| 188 | |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 189 | #else |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 190 | #error "don't know how to read CPU time stamp" |
| 191 | |
| 192 | #endif |
| 193 | |
| 194 | void clib_time_verify_frequency (clib_time_t * c); |
| 195 | |
Florin Coras | a8e71c8 | 2019-10-22 19:01:39 -0700 | [diff] [blame] | 196 | /* Define it as the type returned by clib_time_now */ |
| 197 | typedef f64 clib_time_type_t; |
| 198 | typedef u64 clib_us_time_t; |
| 199 | |
| 200 | #define CLIB_US_TIME_PERIOD (1e-6) |
| 201 | #define CLIB_US_TIME_FREQ (1.0/CLIB_US_TIME_PERIOD) |
| 202 | |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 203 | always_inline f64 |
| 204 | clib_time_now_internal (clib_time_t * c, u64 n) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 205 | { |
| 206 | u64 l = c->last_cpu_time; |
| 207 | u64 t = c->total_cpu_time; |
Dave Barach | e52d8d8 | 2019-12-01 08:59:03 -0500 | [diff] [blame] | 208 | f64 rv; |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 209 | t += n - l; |
| 210 | c->total_cpu_time = t; |
| 211 | c->last_cpu_time = n; |
Dave Barach | e52d8d8 | 2019-12-01 08:59:03 -0500 | [diff] [blame] | 212 | rv = t * c->seconds_per_clock; |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 213 | if (PREDICT_FALSE |
| 214 | ((c->last_cpu_time - |
| 215 | c->last_verify_cpu_time) >> c->log2_clocks_per_frequency_verify)) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 216 | clib_time_verify_frequency (c); |
Dave Barach | e52d8d8 | 2019-12-01 08:59:03 -0500 | [diff] [blame] | 217 | return rv; |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 218 | } |
| 219 | |
John Lo | 7f358b3 | 2018-04-28 01:19:24 -0400 | [diff] [blame] | 220 | /* Maximum f64 value as max clib_time */ |
| 221 | #define CLIB_TIME_MAX (1.7976931348623157e+308) |
| 222 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 223 | always_inline f64 |
| 224 | clib_time_now (clib_time_t * c) |
| 225 | { |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 226 | return clib_time_now_internal (c, clib_cpu_time_now ()); |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 227 | } |
| 228 | |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 229 | always_inline void |
| 230 | clib_cpu_time_wait (u64 dt) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 231 | { |
| 232 | u64 t_end = clib_cpu_time_now () + dt; |
| 233 | while (clib_cpu_time_now () < t_end) |
| 234 | ; |
| 235 | } |
| 236 | |
| 237 | void clib_time_init (clib_time_t * c); |
| 238 | |
| 239 | #ifdef CLIB_UNIX |
| 240 | |
| 241 | #include <time.h> |
| 242 | #include <sys/time.h> |
| 243 | #include <sys/resource.h> |
| 244 | #include <unistd.h> |
| 245 | #include <sys/syscall.h> |
| 246 | |
| 247 | /* Use 64bit floating point to represent time offset from epoch. */ |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 248 | always_inline f64 |
| 249 | unix_time_now (void) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 250 | { |
Damjan Marion | 4dffd1c | 2018-09-03 12:30:36 +0200 | [diff] [blame] | 251 | struct timespec ts; |
| 252 | #ifdef __MACH__ |
| 253 | clock_gettime (CLOCK_REALTIME, &ts); |
| 254 | #else |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 255 | /* clock_gettime without indirect syscall uses GLIBC wrappers which |
| 256 | we don't want. Just the bare metal, please. */ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 257 | syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts); |
Damjan Marion | 4dffd1c | 2018-09-03 12:30:36 +0200 | [diff] [blame] | 258 | #endif |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 259 | return ts.tv_sec + 1e-9 * ts.tv_nsec; |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 260 | } |
| 261 | |
| 262 | /* As above but integer number of nano-seconds. */ |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 263 | always_inline u64 |
| 264 | unix_time_now_nsec (void) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 265 | { |
| 266 | struct timespec ts; |
Damjan Marion | 4dffd1c | 2018-09-03 12:30:36 +0200 | [diff] [blame] | 267 | #ifdef __MACH__ |
| 268 | clock_gettime (CLOCK_REALTIME, &ts); |
| 269 | #else |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 270 | syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts); |
Damjan Marion | 4dffd1c | 2018-09-03 12:30:36 +0200 | [diff] [blame] | 271 | #endif |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 272 | return 1e9 * ts.tv_sec + ts.tv_nsec; |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 273 | } |
| 274 | |
Ole Troan | ed92925 | 2017-06-13 21:15:40 +0200 | [diff] [blame] | 275 | always_inline void |
| 276 | unix_time_now_nsec_fraction (u32 * sec, u32 * nsec) |
| 277 | { |
| 278 | struct timespec ts; |
Damjan Marion | 4dffd1c | 2018-09-03 12:30:36 +0200 | [diff] [blame] | 279 | #ifdef __MACH__ |
| 280 | clock_gettime (CLOCK_REALTIME, &ts); |
| 281 | #else |
Ole Troan | ed92925 | 2017-06-13 21:15:40 +0200 | [diff] [blame] | 282 | syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts); |
Damjan Marion | 4dffd1c | 2018-09-03 12:30:36 +0200 | [diff] [blame] | 283 | #endif |
Ole Troan | ed92925 | 2017-06-13 21:15:40 +0200 | [diff] [blame] | 284 | *sec = ts.tv_sec; |
| 285 | *nsec = ts.tv_nsec; |
| 286 | } |
| 287 | |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 288 | always_inline f64 |
| 289 | unix_usage_now (void) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 290 | { |
| 291 | struct rusage u; |
| 292 | getrusage (RUSAGE_SELF, &u); |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 293 | return u.ru_utime.tv_sec + 1e-6 * u.ru_utime.tv_usec |
| 294 | + u.ru_stime.tv_sec + 1e-6 * u.ru_stime.tv_usec; |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 295 | } |
| 296 | |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 297 | always_inline void |
| 298 | unix_sleep (f64 dt) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 299 | { |
Dave Barach | b9f2cf0 | 2017-10-17 13:13:42 -0400 | [diff] [blame] | 300 | struct timespec ts, tsrem; |
| 301 | ts.tv_sec = dt; |
| 302 | ts.tv_nsec = 1e9 * (dt - (f64) ts.tv_sec); |
| 303 | |
| 304 | while (nanosleep (&ts, &tsrem) < 0) |
| 305 | ts = tsrem; |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 306 | } |
| 307 | |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 308 | #else /* ! CLIB_UNIX */ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 309 | |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 310 | always_inline f64 |
| 311 | unix_time_now (void) |
| 312 | { |
| 313 | return 0; |
| 314 | } |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 315 | |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 316 | always_inline u64 |
| 317 | unix_time_now_nsec (void) |
| 318 | { |
| 319 | return 0; |
| 320 | } |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 321 | |
Ole Troan | ed92925 | 2017-06-13 21:15:40 +0200 | [diff] [blame] | 322 | always_inline void |
| 323 | unix_time_now_nsec_fraction (u32 * sec, u32 * nsec) |
| 324 | { |
| 325 | } |
| 326 | |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 327 | always_inline f64 |
| 328 | unix_usage_now (void) |
| 329 | { |
| 330 | return 0; |
| 331 | } |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 332 | |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 333 | always_inline void |
| 334 | unix_sleep (f64 dt) |
| 335 | { |
| 336 | } |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 337 | |
| 338 | #endif |
| 339 | |
| 340 | #endif /* included_time_h */ |
Dave Barach | c379999 | 2016-08-15 11:12:27 -0400 | [diff] [blame] | 341 | |
| 342 | /* |
| 343 | * fd.io coding-style-patch-verification: ON |
| 344 | * |
| 345 | * Local Variables: |
| 346 | * eval: (c-set-style "gnu") |
| 347 | * End: |
| 348 | */ |