d831e6a2738c54b62e3b384263bc3b3ab3084563
[pstop.git] / performance_schema / relative_time.go
1 package performance_schema
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 }