--- libelwix/inc/elwix/atime.h 2013/03/07 16:24:32 1.2 +++ libelwix/inc/elwix/atime.h 2024/12/05 12:33:49 1.5.94.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: atime.h,v 1.2 2013/03/07 16:24:32 misho Exp $ +* $Id: atime.h,v 1.5.94.1 2024/12/05 12:33:49 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 +Copyright 2004 - 2024 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -46,6 +46,9 @@ SUCH DAMAGE. #ifndef __ATIME_H #define __ATIME_H +#ifdef __cplusplus +extern "C" { +#endif /* * time_Parse() - Parse and make unix time from standart time strings ... @@ -55,5 +58,15 @@ SUCH DAMAGE. */ time_t time_Parse(const char *csTime); +/* + * time_rdtsc() - Get TSC timer value from CPU + * + * return: TSC in nanoseconds + */ +uint64_t time_rdtsc(void); + +#ifdef __cplusplus +} +#endif #endif