blob: 06d9bef2cc63b07876ba0f8bb24fd4fae404eafb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
// Copyright 2017 Yahoo Holdings. 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); }
}
|