Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.cw.unity;
- import android.util.Log;
- public class MyPlugin {
- private static final MyPlugin ourInstance = new MyPlugin();
- private static final String LOGTAG = "CW";
- public static MyPlugin getInstance() { return ourInstance; }
- private long startTime;
- private MyPlugin(){
- Log.i(LOGTAG, "Created blah-blah");
- startTime = System.currentTimeMillis();
- }
- public double getElapsedTime()
- {
- return (System.currentTimeMillis() - startTime)/1000.0f;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement