Loading common/profile.h +4 −3 Original line number Original line Diff line number Diff line Loading @@ -27,8 +27,8 @@ * @brief Simple profiling functions for measuring code execution time. * @brief Simple profiling functions for measuring code execution time. */ */ #ifndef __PROFILE_H #ifndef __TPROFILE_H #define __PROFILE_H #define __TPROFILE_H #include <sys/time.h> #include <sys/time.h> #include <stdint.h> #include <stdint.h> Loading Loading @@ -96,7 +96,6 @@ static inline uint64_t get_tics() gettimeofday( &tv, NULL ); gettimeofday( &tv, NULL ); return (uint64_t) tv.tv_sec * 1000000ULL + (uint64_t) tv.tv_usec; return (uint64_t) tv.tv_sec * 1000000ULL + (uint64_t) tv.tv_usec; #endif } } Loading Loading @@ -144,3 +143,5 @@ static inline void prof_end( prof_counter* cnt ) else else cnt->value = get_tics() - cnt->value; cnt->value = get_tics() - cnt->value; } } #endif Loading
common/profile.h +4 −3 Original line number Original line Diff line number Diff line Loading @@ -27,8 +27,8 @@ * @brief Simple profiling functions for measuring code execution time. * @brief Simple profiling functions for measuring code execution time. */ */ #ifndef __PROFILE_H #ifndef __TPROFILE_H #define __PROFILE_H #define __TPROFILE_H #include <sys/time.h> #include <sys/time.h> #include <stdint.h> #include <stdint.h> Loading Loading @@ -96,7 +96,6 @@ static inline uint64_t get_tics() gettimeofday( &tv, NULL ); gettimeofday( &tv, NULL ); return (uint64_t) tv.tv_sec * 1000000ULL + (uint64_t) tv.tv_usec; return (uint64_t) tv.tv_sec * 1000000ULL + (uint64_t) tv.tv_usec; #endif } } Loading Loading @@ -144,3 +143,5 @@ static inline void prof_end( prof_counter* cnt ) else else cnt->value = get_tics() - cnt->value; cnt->value = get_tics() - cnt->value; } } #endif