@ SuppressWarnings ( { "unused" , "WeakerAccess" } ) public int getTimeElapsed ( ) { int currentSession = getCurrentSession ( ) ; if ( currentSession == 0 ) return - 1 ; int now = ( int ) ( System . currentTimeMillis ( ) / 1000 ) ; return now - currentSession ; }
Returns the time elapsed by the user on the app