mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-30 23:45:28 +08:00
27 lines
774 B
C++
27 lines
774 B
C++
/*******************************************************************************
|
|
* Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
|
|
* Unauthorized copying of this file, via any medium is strictly prohibited.
|
|
* Proprietary and confidential.
|
|
******************************************************************************/
|
|
#include "Utils.h"
|
|
|
|
#include <chrono>
|
|
|
|
namespace zilliz {
|
|
namespace milvus {
|
|
namespace engine {
|
|
namespace utils {
|
|
|
|
long GetMicroSecTimeStamp() {
|
|
auto now = std::chrono::system_clock::now();
|
|
auto micros = std::chrono::duration_cast<std::chrono::microseconds>(
|
|
now.time_since_epoch()).count();
|
|
|
|
return micros;
|
|
}
|
|
|
|
} // namespace utils
|
|
} // namespace engine
|
|
} // namespace milvus
|
|
} // namespace zilliz
|