Added timing to encrypt/decrypt

Added a timing flag to both encrypt and decrypt