Showing the changes to Source/Libraries/GSF.ServiceProcess/ServiceProcess.cs (1 of 12 files). Show all
Unified · Split
| @@ -198,35 +198,17 @@ namespace GSF.ServiceProcess · 197 unmodified lines | ||
| 198 | 198 | /// <summary> |
| 199 | 199 | /// Gets the <see cref="DateTime"/> when execution of <see cref="ServiceProcess"/> last started. |
| 200 | 200 | /// </summary> |
| 201 | − public DateTime ExecutionStartTime | |
| 202 | − { | |
| 203 | − get | |
| 204 | − { | |
| 205 | − return m_executionStartTime; | |
| 206 | − } | |
| 207 | − } | |
| 201 | + public DateTime ExecutionStartTime => m_executionStartTime; | |
| 208 | 202 | |
| 209 | 203 | /// <summary> |
| 210 | 204 | /// Gets the <see cref="DateTime"/> when execution of <see cref="ServiceProcess"/> last completed. |
| 211 | 205 | /// </summary> |
| 212 | − public DateTime ExecutionStopTime | |
| 213 | − { | |
| 214 | − get | |
| 215 | − { | |
| 216 | − return m_executionStopTime; | |
| 217 | − } | |
| 218 | − } | |
| 206 | + public DateTime ExecutionStopTime => m_executionStopTime; | |
| 219 | 207 | |
| 220 | 208 | /// <summary> |
| 221 | 209 | /// Gets the <see cref="Time"/> taken by the <see cref="ServiceProcess"/> during the last execution. |
| 222 | 210 | /// </summary> |
| 223 | − public Time LastExecutionTime | |
| 224 | − { | |
| 225 | − get | |
| 226 | − { | |
| 227 | − return Ticks.ToSeconds(m_executionStopTime.Ticks - m_executionStartTime.Ticks); | |
| 228 | − } | |
| 229 | − } | |
| 211 | + public Time LastExecutionTime => Ticks.ToSeconds(m_executionStopTime.Ticks - m_executionStartTime.Ticks); | |
| 230 | 212 | |
| 231 | 213 | /// <summary> |
| 232 | 214 | /// Gets the descriptive status of the <see cref="ServiceProcess"/>. |