Closed Fryguy closed 5 years ago
lib/more_core_extensions/core_ext/benchmark/realtime_store.rb
Time.now
without zone. Use one of Time.zone.now
, Time.current
, Time.now.in_time_zone
, Time.now.utc
, Time.now.getlocal
, Time.now.iso8601
, Time.now.jisx0301
, Time.now.rfc3339
, Time.now.to_i
, Time.now.to_f
instead.Time.now
without zone. Use one of Time.zone.now
, Time.current
, Time.now.in_time_zone
, Time.now.utc
, Time.now.getlocal
, Time.now.iso8601
, Time.now.jisx0301
, Time.now.rfc3339
, Time.now.to_i
, Time.now.to_f
instead.spec/core_ext/benchmark/realtime_store_spec.rb
Exception
class. Perhaps you meant to rescue StandardError
?As a follow up, I think we should replace the class variable with some thread local variable and/or thread_mattr_accessor
@bdunne @jrafanie Please review.
Note a change from the original [ref] ...previously this registered a logger and logged exceptions. Instead, at the library level it makes more sense to me that the caller handle the logging. So as not to lose the timings, however, we can modify the exception to add the timing metadata to it.