Skip to content

Commit

Permalink
thunderpay-lib: metric-api[Timed]
Browse files Browse the repository at this point in the history
  • Loading branch information
krishpranav committed Dec 20, 2024
1 parent f893806 commit 9483ddd
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* @file Timed.java
* @author Krisna Pranav
* @brief Timed
* @version 1.0
* @date 2024-11-25
*
* @copyright Copyright (c) 2024 ThunderPayment Developers, Krisna Pranav
*
*/

package org.thunderpay.metric.api.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Inherited
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.ANNOTATION_TYPE})
public @interface Timed {
String name() default "";

boolean absolute() default false;
}

0 comments on commit 9483ddd

Please sign in to comment.