Function report |
Source Code:kernel\time\time.c |
Create Date:2022-07-28 10:38:25 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:s_to_timespec - Convert nanoseconds to timespec*@nsec: the nanoseconds value to be converted* Returns the timespec representation of the nsec parameter.
Proto:struct timespec ns_to_timespec(const s64 nsec)
Type:struct timespec
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const s64 | nsec |
| 466 | seconds = div_s64_rem - signed 64bit divide with 64bit divisor and remainder*@dividend: 64bit dividend*@divisor: 64bit divisor*@remainder: 64bit remainder |
| 467 | If Value for the false possibility is greater at compile time(rem < 0) Then |
| 468 | seconds -- |
| 469 | rem += NSEC_PER_SEC |
| 471 | nanoseconds = rem |
| 473 | Return ts |
| Name | Describe |
|---|---|
| ns_to_timeval | s_to_timeval - Convert nanoseconds to timeval*@nsec: the nanoseconds value to be converted* Returns the timeval representation of the nsec parameter. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |