summaryrefslogtreecommitdiffstats
path: root/fastos
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-02-07 13:41:57 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-02-07 13:42:10 +0000
commitb6a1d963deb0a71d4a3981d37b26d6fe388779c5 (patch)
tree6c99518ba0fc524ae3ab5d9d8c5c53325d28b9ae /fastos
parent8551296d35793b1713ead2d7c6e420ffb1783618 (diff)
Record how long it took for you to detect that doom had already arrived.
Diffstat (limited to 'fastos')
-rw-r--r--fastos/src/vespa/fastos/timestamp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fastos/src/vespa/fastos/timestamp.h b/fastos/src/vespa/fastos/timestamp.h
index 2f6573cad7f..55cc40287e0 100644
--- a/fastos/src/vespa/fastos/timestamp.h
+++ b/fastos/src/vespa/fastos/timestamp.h
@@ -45,6 +45,7 @@ public:
double sec() const { return val()/1000000000.0; }
std::string toString() const { return asString(sec()); }
static std::string asString(double timeInSeconds);
+ static TimeStamp fromSec(double sec) { return Seconds(sec); }
private:
TimeT _time;
};