/** * <summary> * Returns the number of elapsed milliseconds between the module power on and the last time * the input button was pressed (the input contact transitioned from open to closed). * <para> * </para> * <para> * </para> * </summary> * <returns> * an integer corresponding to the number of elapsed milliseconds between the module power on and the last time * the input button was pressed (the input contact transitioned from open to closed) * </returns> * <para> * On failure, throws an exception or returns <c>YAnButton.LASTTIMEPRESSED_INVALID</c>. * </para> */ public long get_lastTimePressed() { if (_func == null) { throw new YoctoApiProxyException("No AnButton connected"); } return(_func.get_lastTimePressed()); }