You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
622 B
32 lines
622 B
package com.msb.proxy.v6;/**
|
|
* @Author bingor
|
|
* @Date 2022/10/17 9:42
|
|
* @Description: com.msb.proxy.v5
|
|
* @Version: 1.0
|
|
*/
|
|
|
|
/**
|
|
*@ClassName ProxyTank
|
|
*@Description TODO
|
|
*@Author bingor
|
|
*@Date 2022/10/17 9:42
|
|
*@Version 3.0
|
|
*/
|
|
public class TankTimeProxy implements Movable {
|
|
|
|
private Movable movable;
|
|
|
|
public TankTimeProxy(Movable movable) {
|
|
this.movable = movable;
|
|
}
|
|
|
|
@Override
|
|
public void move() {
|
|
long startTime = System.currentTimeMillis();
|
|
movable.move();
|
|
long entTime = System.currentTimeMillis();
|
|
System.out.println(entTime - startTime);
|
|
}
|
|
|
|
}
|