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 | /// <summary> | 198 | /// <summary> |
| 199 | /// Gets the <see cref="DateTime"/> when execution of <see cref="ServiceProcess"/> last started. | 199 | /// Gets the <see cref="DateTime"/> when execution of <see cref="ServiceProcess"/> last started. |
| 200 | /// </summary> | 200 | /// </summary> |
| 201 | public DateTime ExecutionStartTime | 201 | public DateTime ExecutionStartTime => m_executionStartTime; |
| 202 | { | ||
| 203 | get | ||
| 204 | { | ||
| 205 | return m_executionStartTime; | ||
| 206 | } | ||
| 207 | } | ||
| 208 | 202 | ||
| 209 | /// <summary> | 203 | /// <summary> |
| 210 | /// Gets the <see cref="DateTime"/> when execution of <see cref="ServiceProcess"/> last completed. | 204 | /// Gets the <see cref="DateTime"/> when execution of <see cref="ServiceProcess"/> last completed. |
| 211 | /// </summary> | 205 | /// </summary> |
| 212 | public DateTime ExecutionStopTime | 206 | public DateTime ExecutionStopTime => m_executionStopTime; |
| 213 | { | ||
| 214 | get | ||
| 215 | { | ||
| 216 | return m_executionStopTime; | ||
| 217 | } | ||
| 218 | } | ||
| 219 | 207 | ||
| 220 | /// <summary> | 208 | /// <summary> |
| 221 | /// Gets the <see cref="Time"/> taken by the <see cref="ServiceProcess"/> during the last execution. | 209 | /// Gets the <see cref="Time"/> taken by the <see cref="ServiceProcess"/> during the last execution. |
| 222 | /// </summary> | 210 | /// </summary> |
| 223 | public Time LastExecutionTime | 211 | public Time LastExecutionTime => Ticks.ToSeconds(m_executionStopTime.Ticks - m_executionStartTime.Ticks); |
| 224 | { | ||
| 225 | get | ||
| 226 | { | ||
| 227 | return Ticks.ToSeconds(m_executionStopTime.Ticks - m_executionStartTime.Ticks); | ||
| 228 | } | ||
| 229 | } | ||
| 230 | 212 | ||
| 231 | /// <summary> | 213 | /// <summary> |
| 232 | /// Gets the descriptive status of the <see cref="ServiceProcess"/>. | 214 | /// Gets the descriptive status of the <see cref="ServiceProcess"/>. |