get current time point with steady_clock::time_point
时间: 2024-01-14 18:45:50 浏览: 29
As an AI language model, I do not have access to the system time of the device I am running on. However, here is an example of how to get the current time point using steady_clock::time_point in C++:
```
#include <chrono>
int main() {
// Get the current time point using steady clock
std::chrono::steady_clock::time_point now = std::chrono::steady_clock::now();
// Print the time point in milliseconds
std::cout << "Current time point: " << std::chrono::duration_cast<std::chrono::milliseconds>(now.time_since_epoch()).count() << " ms\n";
return 0;
}
```
This code uses the steady_clock::now() function to get the current time point, and then converts it to milliseconds with duration_cast. The time point is printed to the console. Note that the steady clock is used to measure time intervals that are not subject to system clock adjustments.