Skip to content

Commit 671f18b

Browse files
committed
FIXUP
1 parent 042bf8e commit 671f18b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/main/scala/com/evolutiongaming/prometheus/ObserveDuration.scala

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ sealed trait ObserveDuration[F] {
1919
*/
2020
def timeFunc[T](f: => T): T
2121

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

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

48+
/** Measures in seconds the time spent since the provided start time obtained using [[ClockPlatform.nowMillis]]
49+
*
50+
* @param start
51+
* start time from a millisecond-precision clock
52+
* @deprecated
53+
* since 1.1.0, use timeTillNowMillis(: Long) with a primitive arg type and explicit precision name suffix
54+
*/
3855
@deprecated(
3956
message = "use timeTillNowMillis(: Long) with a primitive arg type and explicit precision name suffix",
4057
since = "1.1.0"
4158
)
4259
def timeTillNow[T](start: T)(implicit numeric: Numeric[T]): Unit
4360

61+
/** Measures in seconds the time spent since the provided start time obtained using [[ClockPlatform.nowNano]]
62+
*
63+
* @param start
64+
* start time from a nanosecond-precision clock
65+
* @deprecated
66+
* since 1.1.0, use timeTillNowNanos(: Long) with a primitive arg type
67+
*/
4468
@deprecated(
4569
message = "use timeTillNowNanos(: Long) with a primitive arg type",
4670
since = "1.1.0"

0 commit comments

Comments
 (0)