Skip to content

Commit

Permalink
[onert] Apply inline variable to Exectime
Browse files Browse the repository at this point in the history
This commit applies inline variable to class Exectime.

ONE-DCO-1.0-Signed-off-by: ragmani <[email protected]>
  • Loading branch information
ragmani committed Feb 12, 2025
1 parent 7497df9 commit c9c6c3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/onert/core/src/exec/ExecTime.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ class ExecTime
* @brief Update metrics file with new data.
*/
void storeOperationsExecTime() const { _json.storeOperationsExecTime(); }
static const int64_t NOT_FOUND = -1;
inline static const int64_t NOT_FOUND = -1;

private:
/// @brief Measurement data, which is shared with serializer
MeasurementData _measurements;
// int64_t::max may cause integer overflow
static const int64_t _MAX = std::numeric_limits<int32_t>::max();
inline static const int64_t _MAX = std::numeric_limits<int32_t>::max();
/// @brief Serializer
JSON _json;
};
Expand Down

0 comments on commit c9c6c3c

Please sign in to comment.