How to initialize chrono in class?

Somehow I can't initialize variables start, finish, difference.
How is it right to do?

using namespace chrono;

class Sort {
private:
 time_point<float> start;
 time_point<float> finish;
 duration<float> difference;

 void startTime() {
 this->start = high_resolution_clock::now();
}

 void endTime() {
 this->finish = high_resolution_clock::now();
 this->difference = this->finish - this->start;
 }
March 23rd 20 at 19:14
1 answer
March 23rd 20 at 19:16
Solution
You are a strange template time_point option to ask. See the example here: https://ru.cppreference.com/w/cpp/chrono/time_point

Find more questions by tags C++