Client send duration and remaining render time

This commit is contained in:
Laurent Clouet
2015-04-27 20:35:44 +01:00
parent dbf55ff4bb
commit 2e4b379a04
4 changed files with 23 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ import java.util.Date;
public class RenderProcess {
private long start;
private long end;
private int remainingDuration;
private long memoryUsed; // in kB
private Process process;
@@ -32,6 +33,7 @@ public class RenderProcess {
start = -1;
end = -1;
memoryUsed = 0;
remainingDuration = 0;
}
public void setMemoryUsed(long val) {
@@ -64,6 +66,18 @@ public class RenderProcess {
return 0;
}
/**
*
* @return duration in seconds
*/
public int getRemainingDuration() {
return remainingDuration;
}
public void setRemainingDuration(int val) {
remainingDuration = val;
}
public void finish() {
end = new Date().getTime();
process = null;