Move to i_s / p_s and add user info (not quite complete)
[pstop.git] / p_s / relative_time.go
1 package p_s
2
3 import (
4         "time"
5 )
6
7 type InitialTime struct {
8         initial_time time.Time
9 }
10
11 func (t *InitialTime) SetNow() {
12         t.initial_time = time.Now()
13 }
14
15 func (t InitialTime) Last() time.Time {
16         return t.initial_time
17 }