Utils.cpp 743 字节
Newer Older
Y
Yu Kun 已提交
1 2 3 4 5 6 7 8
/*******************************************************************************
 * Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 * Proprietary and confidential.
 ******************************************************************************/

#include "Utils.h"

W
wxyu 已提交
9 10 11
#include <chrono>


Y
Yu Kun 已提交
12 13 14 15 16
namespace zilliz {
namespace milvus {
namespace engine {

uint64_t
W
wxyu 已提交
17
get_current_timestamp() {
18 19 20 21
    std::chrono::time_point<std::chrono::system_clock> now = std::chrono::system_clock::now();
    auto duration = now.time_since_epoch();
    auto millis = std::chrono::duration_cast<std::chrono::milliseconds>(duration).count();
    return millis;
Y
Yu Kun 已提交
22 23 24 25 26
}

}
}
}