version 1.3.22.3, 2014/01/29 14:11:45
|
version 1.6, 2023/03/14 22:36:13
|
Line 12 terms:
|
Line 12 terms:
|
All of the documentation and software included in the ELWIX and AITNET |
All of the documentation and software included in the ELWIX and AITNET |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
|
|
Copyright 2004 - 2014 | Copyright 2004 - 2022 |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
|
|
Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
Line 287 time_rdtsc(void)
|
Line 287 time_rdtsc(void)
|
/* unsupported for this architecture, get time by ordinary way */ |
/* unsupported for this architecture, get time by ordinary way */ |
struct timespec ts = { 0, 0LL }; |
struct timespec ts = { 0, 0LL }; |
|
|
|
#ifndef CLOCK_UPTIME_PRECISE |
|
#define CLOCK_UPTIME_PRECISE CLOCK_MONOTONIC |
|
#endif |
clock_gettime(CLOCK_UPTIME_PRECISE, &ts); |
clock_gettime(CLOCK_UPTIME_PRECISE, &ts); |
|
|
return ((uint64_t) ts.tv_sec * 1000000000 + ts.tv_nsec); |
return ((uint64_t) ts.tv_sec * 1000000000 + ts.tv_nsec); |
#endif |
#endif |
} |
} |