【VSCode】的插件WakeTime 安装说明

吐槽:不能流利的浏览英网站真的是硬伤,我都打开了WakeTime官网了,但是找Api Key 都找了半天,郁闷。抓紧时间学习吧!!!

想记录下自己每天coding 的时间以及每个在各个项目上coding的时间,wakatime这个插件可以记录自己每天有效的coding时间。

wakatime 主要安装在编辑器上面的一个插件,目前主流的编辑器工具均可以安装;

目前我是VSCode软件安装插件,首先先搜索插件名称,WakeTime,下载该插件需要填写API Key,要去WakeTime官网获取API Key

WakeTime官网:https://wakatime.com/plugins/status?onboarding=true

直接用WakeTime账号注册或者登陆的话,会很麻烦,他会提示你要启用JavaScript,然后需要下载一个插件SettingSanity

但是,我操作了一下,这个插件根本就下载不了或者是我方法或者能力不行

 

然后采用第二种方法,用GitHub账号授权登陆,但是GitHub为了保证你账号的安全性,需要设置复杂的密码:

大意就是:如果你要设置密码的长度尽量16,类型多样才可以……好吧 希望我还没有得老年痴呆

1000 years later

终于把GitHub账号也注册好了,然后找API KEY!好吧,页面上完全没有关键字提示我要在哪里找,

1.打开首页,点击所选框的连接,Install the Plugin (安装插件)

2.然后选择你所安装插件的编译器,举例VSCode

3.点击即可获取API Key

  • 4
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
void vTaskDelayUntil( TickType_t * const pxPreviousWakeTime, const TickType_t xTimeIncrement ) { TickType_t xTimeToWake; BaseType_t xAlreadyYielded, xShouldDelay = pdFALSE; configASSERT( pxPreviousWakeTime ); configASSERT( ( xTimeIncrement > 0U ) ); configASSERT( uxSchedulerSuspended == 0 ); vTaskSuspendAll(); { /* Minor optimisation. The tick count cannot change in this block. */ const TickType_t xConstTickCount = xTickCount; /* Generate the tick time at which the task wants to wake. */ xTimeToWake = *pxPreviousWakeTime + xTimeIncrement; if( xConstTickCount < *pxPreviousWakeTime ) { /* The tick count has overflowed since this function was lasted called. In this case the only time we should ever actually delay is if the wake time has also overflowed, and the wake time is greater than the tick time. When this is the case it is as if neither time had overflowed. */ if( ( xTimeToWake < *pxPreviousWakeTime ) && ( xTimeToWake > xConstTickCount ) ) { xShouldDelay = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } else { /* The tick time has not overflowed. In this case we will delay if either the wake time has overflowed, and/or the tick time is less than the wake time. */ if( ( xTimeToWake < *pxPreviousWakeTime ) || ( xTimeToWake > xConstTickCount ) ) { xShouldDelay = pdTRUE; } else { mtCOVERAGE_TEST_MARKER(); } } /* Update the wake time ready for the next call. */ *pxPreviousWakeTime = xTimeToWake; if( xShouldDelay != pdFALSE ) { traceTASK_DELAY_UNTIL( xTimeToWake ); /* prvAddCurrentTaskToDelayedList() needs the block time, not the time to wake, so subtract the current tick count. */ prvAddCurrentTaskToDelayedList( xTimeToWake - xConstTickCount, pdFALSE ); } else { mtCOVERAGE_TEST_MARKER(); } } xAlreadyYielded = xTaskResumeAll(); /* Force a reschedule if xTaskResumeAll has not already done so, we may have put ourselves to sleep. */ if( xAlreadyYielded == pdFALSE ) { portYIELD_WITHIN_API(); } else { mtCOVERAGE_TEST_MARKER(); } }
07-16

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值