mirror of
https://gitlab.com/80486DX2-66/gists
synced 2024-12-23 19:29:51 +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) \
|
||||
(((clock_hr_microsec_t) ((t2) - (t1))) / \
|
||||
((clock_hr_microsec_t) QPF_frequency))
|
||||
|
||||
#elif defined(SYS_UNIX)
|
||||
# define CLOCK_HR_DIFFTIME_MS(t2, t1) \
|
||||
((t2) - (t1))
|
||||
|
||||
#else
|
||||
# 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)
|
||||
|
||||
#endif
|
||||
|
||||
// function implementations
|
||||
|
Loading…
Reference in New Issue
Block a user