Changeset 160


Ignore:
Timestamp:
Feb 2, 2010, 2:06:56 PM (14 years ago)
Author:
jahn
Message:

Added empty method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Event.groovy

    r139 r160  
    2727
    2828        def getDuration() {
    29                 //endTime - startTime  // this is not documented and does not work either
    30                 // so, it's useless.
     29                // time diff between end and start date
    3130                // thus, do this manually as follows
    3231
     
    4241
    4342
     43        def getPrettyDuration() {
     44             // return a string that prints the duration sensibly.
     45             // the largest date unit (sec, min, h, day, month, or year)
     46             // is output
     47        }
     48
     49
    4450        def getDurationString() {
    4551                def d = getDuration()
     
    4854
    4955
     56        def isSamplingEvent() {
     57                return ( this instanceof SamplingEvent )
     58        }
    5059}
Note: See TracChangeset for help on using the changeset viewer.