Wood-like rock

Found at Loch Tummel, Scotland. It looks like wood but is as hard as and ‘clinks’ like stone.

Would love to know what this weird thing is! Sorry for the poor focus