TimeElapsed Method
- Last UpdatedNov 06, 2025
- 1 minute read
To determine if a certain number of seconds have elapsed since a specified datetime
'Declaration
Public Shared Function TimeElapsed( _
ByVal startTime As Date, _
ByVal numSeconds As Long _
) As Boolean
public static bool TimeElapsed(
DateTime startTime,
long numSeconds
)
Parameters
- startTime
- The start DateTime for the comparison
- numSeconds
- Number of seconds after StartTime to be tested for
Return Value
Returns true if the current time is at least the specified number of seconds after the specified start time, else returns false