common/profile.h: fix incorrect #endif

This commit is contained in:
tomasz.wlostowski@cern.ch 2013-09-13 15:28:51 +02:00
parent 228a9451f7
commit 00ecafe94f
1 changed files with 4 additions and 3 deletions

View File

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