get rid of unused function warning, no need for static.

This commit is contained in:
Alexey Rybalchenko 2014-01-22 09:48:51 +01:00
parent 5989845e31
commit 2a2b1b5d96
2 changed files with 7 additions and 6 deletions

View File

@ -72,3 +72,9 @@ void FairMQLogger::Log(int type, std::string logmsg)
std::cout << "[\033[01;36m" << mbstr << fractional_seconds << "\033[0m]" << "[" << type_str << "]" << " " << logmsg << std::endl;
}
timestamp_t get_timestamp ()
{
struct timeval now;
gettimeofday (&now, NULL);
return now.tv_usec + (timestamp_t)now.tv_sec * 1000000;
}

View File

@ -32,11 +32,6 @@ class FairMQLogger
typedef unsigned long long timestamp_t;
static timestamp_t get_timestamp ()
{
struct timeval now;
gettimeofday (&now, NULL);
return now.tv_usec + (timestamp_t)now.tv_sec * 1000000;
}
timestamp_t get_timestamp ();
#endif /* FAIRMQLOGGER_H_ */