git://git.iain.cx/iain
/
pstop.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial import of pstop v0.0.10
[pstop.git]
/
performance_schema
/
relative_time.go
diff --git a/performance_schema/relative_time.go
b/performance_schema/relative_time.go
new file mode 100644
(file)
index 0000000..
d831e6a
--- /dev/null
+++ b/
performance_schema/relative_time.go
@@ -0,0
+1,17
@@
+package performance_schema
+
+import (
+ "time"
+)
+
+type InitialTime struct {
+ initial_time time.Time
+}
+
+func (t *InitialTime) SetNow() {
+ t.initial_time = time.Now()
+}
+
+func (t InitialTime) Last() time.Time {
+ return t.initial_time
+}