Skip to content

Commit

Permalink
FIXUP
Browse files Browse the repository at this point in the history
  • Loading branch information
migesok committed Sep 3, 2024
1 parent 042bf8e commit 671f18b
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ sealed trait ObserveDuration[F] {
*/
def timeFunc[T](f: => T): T

/** Measures evaluation time of a block in seconds with nano-time precision
*
* @deprecated
* since 1.1.0 timeFunc has been changed to use nano-time precision, this method is obsolete and will be removed
*/
@deprecated(
message = "use timeFunc instead - it has nano-time precision now",
since = "1.1.0"
Expand All @@ -29,18 +34,37 @@ sealed trait ObserveDuration[F] {
*/
def timeFuture[T](f: => Future[T]): Future[T]

/** Measures evaluation time of an asynchronous block in seconds with nano-time precision
*
* @deprecated
* since 1.1.0 timeFuture has been changed to use nano-time precision, this method is obsolete and will be removed
*/
@deprecated(
message = "use timeFuture instead - it has nano-time precision now",
since = "1.1.0"
)
def timeFutureNanos[T](f: => Future[T]): Future[T] = timeFuture(f)

/** Measures in seconds the time spent since the provided start time obtained using [[ClockPlatform.nowMillis]]
*
* @param start
* start time from a millisecond-precision clock
* @deprecated
* since 1.1.0, use timeTillNowMillis(: Long) with a primitive arg type and explicit precision name suffix
*/
@deprecated(
message = "use timeTillNowMillis(: Long) with a primitive arg type and explicit precision name suffix",
since = "1.1.0"
)
def timeTillNow[T](start: T)(implicit numeric: Numeric[T]): Unit

/** Measures in seconds the time spent since the provided start time obtained using [[ClockPlatform.nowNano]]
*
* @param start
* start time from a nanosecond-precision clock
* @deprecated
* since 1.1.0, use timeTillNowNanos(: Long) with a primitive arg type
*/
@deprecated(
message = "use timeTillNowNanos(: Long) with a primitive arg type",
since = "1.1.0"
Expand Down

0 comments on commit 671f18b

Please sign in to comment.