more temporal functions

This commit is contained in:
Jonathan Shook
2023-05-18 14:58:35 -05:00
parent e817875313
commit 26ee5c1747

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2022 nosqlbench * Copyright (c) 2023 nosqlbench
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -14,7 +14,19 @@
* limitations under the License. * limitations under the License.
*/ */
package io.nosqlbench.activitytype.diag; package io.nosqlbench.virtdata.library.basics.shared.temporal;
public class DiagResult { import io.nosqlbench.virtdata.api.annotations.Categories;
import io.nosqlbench.virtdata.api.annotations.Category;
import io.nosqlbench.virtdata.api.annotations.ThreadSafeMapper;
import java.util.function.LongUnaryOperator;
@ThreadSafeMapper
@Categories(Category.datetime)
public class CurrentTimeMillis implements LongUnaryOperator {
@Override
public long applyAsLong(long operand) {
return System.currentTimeMillis();
}
} }