blob: a5330e69deffd062296d6f28da9609f3739bd3ef (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/fastos/time.h>
double
FastOS_TimeInterface::MicroSecsToNow(void) const
{
FastOS_Time now;
now.SetNow();
return now.MicroSecs() - MicroSecs();
}
double
FastOS_TimeInterface::MilliSecsToNow(void) const
{
FastOS_Time now;
now.SetNow();
return now.MilliSecs() - MilliSecs();
}
|