From ce8cceb2f04afe99146f21ce6debdc061fff28d8 Mon Sep 17 00:00:00 2001 From: irengrig Date: Wed, 13 Jan 2010 14:24:57 +0300 Subject: [PATCH] P4: low level logging --- .../util/src/com/intellij/openapi/util/Timed.java | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 platform/util/src/com/intellij/openapi/util/Timed.java diff --git a/platform/util/src/com/intellij/openapi/util/Timed.java b/platform/util/src/com/intellij/openapi/util/Timed.java new file mode 100644 index 0000000000..da6865899c --- /dev/null +++ b/platform/util/src/com/intellij/openapi/util/Timed.java @@ -0,0 +1,39 @@ +/* + * Copyright 2000-2010 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.intellij.openapi.util; + +public class Timed { + private final T myT; + private final long myTime; + + public Timed(final T t, final long time) { + myT = t; + myTime = time; + } + + public Timed(final T t) { + myT = t; + myTime = System.currentTimeMillis(); + } + + public T getT() { + return myT; + } + + public long getTime() { + return myTime; + } +} -- 2.11.4.GIT