s/BenchmarkMeasurement.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 12 Feb 2020 15:09:57 +0000
changeset 318 1b735d3747d8
parent 285 0cf54ee76de5
permissions -rw-r--r--
Use launcher script to run smalltalk ...rather than binary. This makes it work in both, in-tree builds and (new) out-of-tree builds.

"{ Package: 'jv:calipel/s' }"

"{ NameSpace: Smalltalk }"

Object subclass:#BenchmarkMeasurement
	instanceVariableNames:'value instrument'
	classVariableNames:''
	poolDictionaries:''
	category:'CalipeL-S-Core-Measurement'
!

!BenchmarkMeasurement class methodsFor:'documentation'!

documentation
"
    BenchmarkMeasurement is a simple value object that keeps a value
    measured by some intrument

    [author:]
        Jan Vrany <jan.vrany@fit.cvut.cz>

    [instance variables:]

    [class variables:]

    [see also:]
        BenchmarkMeasurementInstrument

"
! !

!BenchmarkMeasurement class methodsFor:'instance creation'!

instrument: instrumentArg value: valueArg
    ^ self new instrument: instrumentArg value: valueArg

    "Created: / 24-11-2014 / 07:15:05 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!BenchmarkMeasurement methodsFor:'accessing'!

instrument
    ^ instrument
!

value
    ^ value
! !

!BenchmarkMeasurement methodsFor:'initialization'!

instrument: instrumentArg value: valueArg
    instrument := instrumentArg.
    value := valueArg

    "Created: / 24-11-2014 / 07:06:37 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !