All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.relevantcodes.extentreports.model.SuiteTimeInfo Maven / Gradle / Ivy

There is a newer version: 2.41.2
Show newest version
/*
* Copyright (c) 2015, Anshoo Arora (Relevant Codes).  All rights reserved.
* 
* Copyrights licensed under the New BSD License.
* 
* See the accompanying LICENSE file for terms.
*/

package com.relevantcodes.extentreports.model;

import java.util.Calendar;

import com.relevantcodes.extentreports.utils.DateTimeUtil;

public class SuiteTimeInfo {
    private long startedAt;
    private long endedAt;
    
    public void setSuiteStartTimestamp(long startedAt) {
        this.startedAt = startedAt;
    }
    
    public long getSuiteStartTimestamp() {
        return startedAt;
    }
    
    public void setSuiteEndTimestamp(long endedAt) {
        this.endedAt = endedAt;
    }
    
    public long getSuiteEndTimestamp() {
        return endedAt;
    }
    
    public String getTimeDiff() {
        return DateTimeUtil.getDiff(endedAt, startedAt);
    }
    
    public SuiteTimeInfo() { 
        startedAt = Calendar.getInstance().getTime().getTime();
    } 
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy