コード例 #1
0
 /**
  * <summary>
  *   Returns the number of elapsed milliseconds between the module power on and the last observed
  *   detection (the input contact transitioned from absent to present).
  * <para>
  * </para>
  * <para>
  * </para>
  * </summary>
  * <returns>
  *   an integer corresponding to the number of elapsed milliseconds between the module power on and the last observed
  *   detection (the input contact transitioned from absent to present)
  * </returns>
  * <para>
  *   On failure, throws an exception or returns <c>YProximity.LASTTIMEAPPROACHED_INVALID</c>.
  * </para>
  */
 public long get_lastTimeApproached()
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No Proximity connected");
     }
     return(_func.get_lastTimeApproached());
 }