2014-04-26 09:18:56 +00:00
|
|
|
package NumGen
|
|
|
|
|
2014-10-19 17:19:11 +00:00
|
|
|
import (
|
|
|
|
LM "github.com/SommerEngineering/Ocean/Log/Meta"
|
|
|
|
"sync"
|
2015-06-18 15:13:41 +00:00
|
|
|
"time"
|
2014-10-19 17:19:11 +00:00
|
|
|
)
|
2014-04-26 09:18:56 +00:00
|
|
|
|
|
|
|
var (
|
2015-06-18 15:13:41 +00:00
|
|
|
senderName LM.Sender = `System::NumGen` // This is the name for logging event from this package
|
|
|
|
genLock sync.Mutex = sync.Mutex{} // The mutex for the generator
|
|
|
|
genCurrentTime time.Time = time.Now().UTC() // The time for the last generated number
|
|
|
|
genCurrentMillisecond int = 0 // The millisecond for the last generated number
|
|
|
|
genCurrentMillisecondCounter int = 0 // The counter of how many numbers are generated at the same time
|
2014-04-26 09:18:56 +00:00
|
|
|
)
|