mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 16:48:45 +05:00
started rating unit implementation
This commit is contained in:
@@ -66,3 +66,10 @@ func (cc *CallCost) GetStartTime() time.Time {
|
||||
}
|
||||
return cc.Timespans[0].TimeStart
|
||||
}
|
||||
|
||||
func (cc *CallCost) GetTotalDuration() (td time.Duration) {
|
||||
for _, ts := range cc.Timespans {
|
||||
td += ts.GetDuration()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user