--- libelwix/inc/elwix/atime.h 2013/03/07 15:34:25 1.1.2.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.1.2.2 2013/03/07 15:34:25 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,14 +46,27 @@ SUCH DAMAGE. #ifndef __ATIME_H #define __ATIME_H +#ifdef __cplusplus +extern "C" { +#endif /* * time_Parse() - Parse and make unix time from standart time strings ... * * @csTime = Time string - * return: =0 error or !=0 converted time + * return: =-1 error or !=-1 converted time */ 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