]> git.basschouten.com Git - openhab-addons.git/blob
d9e08d78dad56d675dfe55caa439490089313c88
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.tesla.internal.throttler;
14
15 /**
16  * The {@link TimeProvider} provides time stamps
17  *
18  * @author Karel Goderis - Initial contribution
19  */
20 public interface TimeProvider {
21     public static final TimeProvider SYSTEM_PROVIDER = new TimeProvider() {
22         @Override
23         public long getCurrentTimeInMillis() {
24             return System.currentTimeMillis();
25         }
26     };
27
28     public long getCurrentTimeInMillis();
29 }