Skip to content

Commit

Permalink
Define dcpu.DefaultClockRate
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyball committed Apr 7, 2012
1 parent 5f0f122 commit 5da30d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dcpu/machine.go
Expand Up @@ -13,6 +13,8 @@ type Machine struct {
stopped <-chan error
}

const DefaultClockRate = time.Microsecond / 10

// Start boots up the machine, with a clock rate of 1 / period
// 10MHz would be expressed as (Microsecond / 10)
func (m *Machine) Start(period time.Duration) error {
Expand Down

0 comments on commit 5da30d1

Please sign in to comment.