I would like to know if there is a way in C++ to measure the time that it takes between a function is initiated and a value is returned from it.
(Here I call "std::cin" a function.)Code:std::cout << "assign a value: "; std::cin >> variable:
Here I want to know the time that it takes from that that the program is expecting a value to be assigned to the variable "variable", and that that a value has been assigned to it.
I would also like to have the time that has been measured returned in a float of seconds and hundreds of seconds, like 3.21 for example.
Sorry if I don't know the correct terms for everything, I hope you understand what I mean anyway.