mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
get rid of unused function warning, no need for static.
This commit is contained in:
parent
5989845e31
commit
2a2b1b5d96
|
@ -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;
|
||||
}
|
|
@ -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_ */
|
||||
|
|
Loading…
Reference in New Issue
Block a user