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
Move to i_s / p_s and add user info (not quite complete)
[pstop.git]
/
p_s
/
relative_time.go
diff --git a/p_s/relative_time.go
b/p_s/relative_time.go
new file mode 100644
(file)
index 0000000..
2339d28
--- /dev/null
+++ b/
p_s/relative_time.go
@@ -0,0
+1,17
@@
+package p_s
+
+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
+}