Function report |
Source Code:fs\select.c |
Create Date:2022-07-28 20:07:00 |
Last Modify:2020-03-18 10:25:38 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__estimate_accuracy
Proto:static long __estimate_accuracy(struct timespec64 *tv)
Type:long
Parameter:
Type | Parameter | Name |
---|---|---|
struct timespec64 * | tv |
55 | divfactor = 1000 |
57 | If seconds < 0 Then Return 0 |
60 | If ask_nice - return the nice value of a given task.*@p: the task in question.* Return: The nice value [ -20 ... 0 ... 19 ]. > 0 Then divfactor = divfactor / 5 |
63 | If seconds > Estimate expected accuracy in ns from a timeval / NSEC_PER_SEC / divfactor Then Return Estimate expected accuracy in ns from a timeval |
66 | slack = nanoseconds / divfactor |
67 | slack += seconds * NSEC_PER_SEC / divfactor |
69 | If slack > Estimate expected accuracy in ns from a timeval Then Return Estimate expected accuracy in ns from a timeval |
72 | Return slack |
Name | Describe |
---|---|
select_estimate_accuracy |
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 |