more cleanups
[pstop.git] / p_s / relative_time.go
index 2339d28..2cf742b 100644 (file)
@@ -1,17 +1,21 @@
+// manage the time the statistics were taken
 package p_s
 
 import (
        "time"
 )
 
+// object to hold the last collection time
 type InitialTime struct {
        initial_time time.Time
 }
 
+// reflect we've just collected statistics
 func (t *InitialTime) SetNow() {
        t.initial_time = time.Now()
 }
 
+// return the last time we collected statistics
 func (t InitialTime) Last() time.Time {
        return t.initial_time
 }