HomeForumSourceResearchGuide
Sign in to contribute to source. how it works
Type definition file time.ClockHD by barry
expand copy to clipboardexpand
/* {"description" : "A time point, expressed as seconds and nanoseconds."} */
data TimeHD {
	/* {"@description" : "The number of seconds."} */
	int seconds
	/* {"@description" : "The number of nanoseconds."} */
	int nanoseconds
	}

/* {"description" : "Retrieves a relative time using a high-definition clock."} */
interface ClockHD {
	
	/* { "@description" : "Initialises the clock; time points will be relative to this instantiation point." } */
	ClockHD()
	
	/* { "@description" : "Returns the number of elapsed seconds and nanoseconds since the initialisation time." } */
	TimeHD getTime()
	}
Revision history
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n time.ClockHD -m "reason for update" -u yourUsername
Version 1 (this version) by barry
Notes for this version: Standard Library Initialisation