added new getClock native method