diff options
Diffstat (limited to 'src/ElapsedPeriod.h')
| -rw-r--r-- | src/ElapsedPeriod.h | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/ElapsedPeriod.h b/src/ElapsedPeriod.h index e083c0dda..3f05dc88d 100644 --- a/src/ElapsedPeriod.h +++ b/src/ElapsedPeriod.h @@ -12,15 +12,15 @@ namespace Scintilla {  // Simplified access to high precision timing.  class ElapsedPeriod { -	std::chrono::high_resolution_clock::time_point tp; +	using ElapsedClock = std::chrono::steady_clock; +	ElapsedClock::time_point tp;  public:  	/// Capture the moment -	ElapsedPeriod() noexcept : tp(std::chrono::high_resolution_clock::now()) { +	ElapsedPeriod() noexcept : tp(ElapsedClock::now()) {  	}  	/// Return duration as floating point seconds  	double Duration(bool reset=false) noexcept { -		const std::chrono::high_resolution_clock::time_point tpNow = -			std::chrono::high_resolution_clock::now(); +		const ElapsedClock::time_point tpNow = ElapsedClock::now();  		const std::chrono::duration<double> stylingDuration =  			std::chrono::duration_cast<std::chrono::duration<double>>(tpNow - tp);  		if (reset) { | 
