Native Method

  • 一个java调用非java代码的接口。

示例

System.currentTimeMillis()

@HotSpotIntrinsicCandidate
public static native long currentTimeMillis();
    /**
     * 获取当前时间戳
     *
     * @return
     */
    public static long getCurrentTimestamp() {
        return System.currentTimeMillis();
    }

本文作者:xietingweia

本文链接:https://www.cnblogs.com/xietingwei/p/17685290.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   xietingweia  阅读(10)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
💬
评论
📌
收藏
💗
关注
👍
推荐
🚀
回顶
收起
  1. 1 404 not found REOL
404 not found - REOL
00:00 / 00:00
An audio error has occurred.