utils

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateResourcesIndices

func GenerateResourcesIndices(resDirPath, outFilePath string)

func GenerateShaders

func GenerateShaders(shadersDirPath, targetFilePath, packageName string)

Types

type Benchmark added in v0.1.1

type Benchmark struct {
	// contains filtered or unexported fields
}

A type for benchmarking time performance of code sections.

func NewBenchmark added in v0.1.1

func NewBenchmark(name string) *Benchmark

func (*Benchmark) GetCount added in v0.1.1

func (b *Benchmark) GetCount() int

Returns the number of tests run with this instance.

func (*Benchmark) GetMillis added in v0.1.1

func (b *Benchmark) GetMillis() int64

Returns the duration in milliseconds of the last run timer.

func (*Benchmark) GetName added in v0.1.1

func (b *Benchmark) GetName() string

func (*Benchmark) GetResult added in v0.1.1

func (b *Benchmark) GetResult() time.Duration

Returns the duration of the last run timer.

func (*Benchmark) GetSeconds added in v0.1.1

func (b *Benchmark) GetSeconds() float64

Returns the duration in seconds of the last run timer.

func (*Benchmark) Print added in v0.1.1

func (b *Benchmark) Print()

Prints the result of the last run.

func (*Benchmark) Start added in v0.1.1

func (b *Benchmark) Start()

Starts timer if not already started.

func (*Benchmark) Stop added in v0.1.1

func (b *Benchmark) Stop()

Stops timer if started.

func (*Benchmark) ToString added in v0.1.1

func (b *Benchmark) ToString() string

Returns string representation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL