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

com.kolibrifx.plovercrest.performance.tools.TimingData Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2010-2017, KolibriFX AS. Licensed under the Apache License, version 2.0.
 */

package com.kolibrifx.plovercrest.performance.tools;

import com.kolibrifx.napo.base.Param;
import com.kolibrifx.napo.base.Timestamp;

public class TimingData {
    private final long timestamp;
    private final long nanoTimestamp;

    public TimingData(@Param("Timestamp") final long timestamp, @Param("NanoTimestamp") final long nanoTimestamp) {
        this.timestamp = timestamp;
        this.nanoTimestamp = nanoTimestamp;
    }

    @Timestamp
    public long getTimestamp() {
        return timestamp;
    }

    public long getNanoTimestamp() {
        return nanoTimestamp;
    }

    @Override
    public String toString() {
        return "TimingData [timestamp=" + timestamp + ", nanoTimestamp=" + nanoTimestamp + "]";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy