Skip to content

Commit 80ca7d9

Browse files
committed
read() is OK
1 parent 80c47e3 commit 80ca7d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

highs/ipm/ipx/timer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class Timer {
1616
typedef time_point<high_resolution_clock> TimePoint;
1717
static TimePoint tic();
1818
static double toc(TimePoint start);
19+
static double read() { return duration_cast<duration<double>>(high_resolution_clock::now().time_since_epoch()).count(); }
1920
TimePoint t0_;
2021
public:
2122
double offset_;

0 commit comments

Comments
 (0)