mirror of
https://gitlab.com/80486DX2-66/gists
synced 2024-11-08 08:54:34 +05:30
clock_hr_microsec.c: reformat
This commit is contained in:
parent
727775502b
commit
a4f2974468
@ -20,16 +20,13 @@ static LONGLONG QPF_frequency;
|
|||||||
# define CLOCK_HR_DIFFTIME_MS(t2, t1) \
|
# define CLOCK_HR_DIFFTIME_MS(t2, t1) \
|
||||||
(((clock_hr_microsec_t) ((t2) - (t1))) / \
|
(((clock_hr_microsec_t) ((t2) - (t1))) / \
|
||||||
((clock_hr_microsec_t) QPF_frequency))
|
((clock_hr_microsec_t) QPF_frequency))
|
||||||
|
|
||||||
#elif defined(SYS_UNIX)
|
#elif defined(SYS_UNIX)
|
||||||
# define CLOCK_HR_DIFFTIME_MS(t2, t1) \
|
# define CLOCK_HR_DIFFTIME_MS(t2, t1) \
|
||||||
((t2) - (t1))
|
((t2) - (t1))
|
||||||
|
|
||||||
#else
|
#else
|
||||||
# define CLOCK_HR_DIFFTIME_MS(t2, t1) \
|
# define CLOCK_HR_DIFFTIME_MS(t2, t1) \
|
||||||
((clock_hr_microsec_t) ((t2) - (t1)) * 1000000.L) / \
|
((clock_hr_microsec_t) ((t2) - (t1)) * 1000000.L) / \
|
||||||
((clock_hr_microsec_t) CLOCKS_PER_SEC)
|
((clock_hr_microsec_t) CLOCKS_PER_SEC)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// function implementations
|
// function implementations
|
||||||
|
Loading…
Reference in New Issue
Block a user