Changeset 228533 in webkit for trunk/Source/JavaScriptCore/testRegExp.cpp
- Timestamp:
- Feb 15, 2018, 2:34:16 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/testRegExp.cpp
r225930 r228533 71 71 72 72 private: 73 double m_startTime;74 double m_stopTime;73 MonotonicTime m_startTime; 74 MonotonicTime m_stopTime; 75 75 }; 76 76 77 77 void StopWatch::start() 78 78 { 79 m_startTime = monotonicallyIncreasingTime();79 m_startTime = MonotonicTime::now(); 80 80 } 81 81 82 82 void StopWatch::stop() 83 83 { 84 m_stopTime = monotonicallyIncreasingTime();84 m_stopTime = MonotonicTime::now(); 85 85 } 86 86 87 87 long StopWatch::getElapsedMS() 88 88 { 89 return static_cast<long>((m_stopTime - m_startTime) * 1000);89 return (m_stopTime - m_startTime).millisecondsAs<long>(); 90 90 } 91 91
Note:
See TracChangeset
for help on using the changeset viewer.