<div id="app" >
  <p v-for="i in 3">

    Time return by method:{{getTime()}}
  </p>
  <p v-for="i in 3">
    Time return by computed:{{getTimeComputed}}
  </p>
</div>
Vue.createApp({
  methods:{
    getTime(){
      //return Date.now();
      console.log("methods~")
      return  performance.now();
    }
  },
  computed:{
    getTimeComputed(){
      //return Date.now();
      console.log("computed~")
      return  performance.now();
    }
  }
}).mount('#app')

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://unpkg.com/vue@next