@@ -19,6 +19,11 @@ sealed trait ObserveDuration[F] {
19
19
*/
20
20
def timeFunc [T ](f : => T ): T
21
21
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
+ */
22
27
@ deprecated(
23
28
message = " use timeFunc instead - it has nano-time precision now" ,
24
29
since = " 1.1.0"
@@ -29,18 +34,37 @@ sealed trait ObserveDuration[F] {
29
34
*/
30
35
def timeFuture [T ](f : => Future [T ]): Future [T ]
31
36
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
+ */
32
42
@ deprecated(
33
43
message = " use timeFuture instead - it has nano-time precision now" ,
34
44
since = " 1.1.0"
35
45
)
36
46
def timeFutureNanos [T ](f : => Future [T ]): Future [T ] = timeFuture(f)
37
47
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
+ */
38
55
@ deprecated(
39
56
message = " use timeTillNowMillis(: Long) with a primitive arg type and explicit precision name suffix" ,
40
57
since = " 1.1.0"
41
58
)
42
59
def timeTillNow [T ](start : T )(implicit numeric : Numeric [T ]): Unit
43
60
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
+ */
44
68
@ deprecated(
45
69
message = " use timeTillNowNanos(: Long) with a primitive arg type" ,
46
70
since = " 1.1.0"
0 commit comments