| 1 |
/* |
| 2 |
* Copyright(C) 1999-2020, 2024 National Technology & Engineering Solutions |
| 3 |
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with |
| 4 |
* NTESS, the U.S. Government retains certain rights in this software. |
| 5 |
* |
| 6 |
* See packages/seacas/LICENSE for details |
| 7 |
*/ |
| 8 |
|
| 9 |
#include <chrono> // for duration, etc |
| 10 |
double get_time() |
| 11 |
{ |
| 12 |
static auto start = std::chrono::steady_clock::now(); |
| 13 |
auto now = std::chrono::steady_clock::now(); |
| 14 |
std::chrono::duration<double> diff = now - start; |
| 15 |
return diff.count(); |
| 16 |
} |