blob: fae3983e2d3bf84057549e43f0468e072aef61ad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.utils.util;
/**
* Wrap access to clock so that we can override it in unit tests
*/
public class Clock {
public long getTimeInMillis() { return System.currentTimeMillis(); }
public int getTimeInSecs() { return (int)(getTimeInMillis() / 1000); }
}
|