package com.gingersoft.supply_chain.mvp.utils;

/**
 * @author 宇航.
 * User: admin
 * Date: 2021/2/6
 * Time: 17:21
 * Use:
 */
public class DoubleClickUtils {
    private static long lastClickTime = 0;

    public static boolean isFastDoubleClick() {
        long nowTime = System.currentTimeMillis();
        if (nowTime - lastClickTime < 500) {//500ms
            return true;
        }
        lastClickTime = nowTime;
        return false;
    }

}
