flst / upstream /emscripten /system /lib /llvm-libc /include /llvm-libc-macros /linux /sys-time-macros.h
| //===-- Definition of macros from sys/time.h ------------------------------===// | |
| // | |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | |
| // See https://llvm.org/LICENSE.txt for license information. | |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| // | |
| //===----------------------------------------------------------------------===// | |
| // Add two timevals and put the result in timeval_ptr_result. If the resulting | |
| // usec value is greater than 999,999 then the microseconds are turned into full | |
| // seconds (1,000,000 is subtracted from usec and 1 is added to sec). | |
| // Subtract two timevals and put the result in timeval_ptr_result. If the | |
| // resulting usec value is less than 0 then 1,000,000 is added to usec and 1 is | |
| // subtracted from sec. | |
| // Reset a timeval to the epoch. | |
| // Determine if a timeval is set to the epoch. | |
| // Compare two timevals using CMP. | |