35 lines
558 B
C++
35 lines
558 B
C++
/**
|
|
* @file include/di/Time.h
|
|
* @brief DI-Net time creator
|
|
* @date May 29, 2015
|
|
* @author R.W.A. van der Heijden
|
|
* @copyright 2015 Dual Inventive Technology Centre B.V.
|
|
*
|
|
* Class which can provide DI-Net timestamp
|
|
*/
|
|
#ifndef INCLUDE_DI_TIME_H_
|
|
#define INCLUDE_DI_TIME_H_
|
|
|
|
#include <cstdint>
|
|
|
|
namespace Di {
|
|
|
|
/**
|
|
* @class Time
|
|
*
|
|
* Class which can provide DI-Net timestamp
|
|
*/
|
|
class Time {
|
|
public:
|
|
/**
|
|
* Get current timestamp
|
|
*
|
|
* @return DI-Net timestamp
|
|
*/
|
|
static uint64_t getNow();
|
|
};
|
|
|
|
} // namespace Di
|
|
|
|
#endif // INCLUDE_DI_TIME_H_
|