mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-12 16:21:13 +00:00
Initialize all data members in initializer lists. Reorder data members in initializer list to have the same order as in the class declaration. Comment or remove unused parameters and unused variables. Convert all old style casts to the correct and explicit c++ cast like const_cast, static_cast, dynamic_cast or reinterpret_cast. In most cases static_cast is used.
25 lines
892 B
C++
25 lines
892 B
C++
/********************************************************************************
|
|
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
|
|
* *
|
|
* This software is distributed under the terms of the *
|
|
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
|
|
* copied verbatim in the file "LICENSE" *
|
|
********************************************************************************/
|
|
/**
|
|
* FairMQLogger.cxx
|
|
*
|
|
* @since 2012-12-04
|
|
* @author D. Klein, A. Rybalchenko
|
|
*/
|
|
|
|
#include <sys/time.h>
|
|
#include <ctime>
|
|
#include "FairMQLogger.h"
|
|
|
|
timestamp_t get_timestamp()
|
|
{
|
|
struct timeval now;
|
|
gettimeofday(&now, NULL);
|
|
return now.tv_usec + static_cast<timestamp_t>(now.tv_sec) * 1000000;
|
|
}
|